<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibDriver MPU9250: example/driver_mpu9250_dmp.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibDriver MPU9250
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   <div id="projectbrief">MPU9250 full-featured driver</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('driver__mpu9250__dmp_8c_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">driver_mpu9250_dmp.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="driver__mpu9250__dmp_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="driver__mpu9250__dmp_8h.html">driver_mpu9250_dmp.h</a>&quot;</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keyword">static</span> <a class="code" href="structmpu9250__handle__s.html">mpu9250_handle_t</a> gs_handle;        </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="group__mpu9250__example__driver.html#ga0a6e3c022348ff534e8c232f9eef2fcc">   48</a></span>&#160;uint8_t <a class="code" href="group__mpu9250__example__driver.html#ga0a6e3c022348ff534e8c232f9eef2fcc">mpu9250_dmp_irq_handler</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;{</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="group__mpu9250__basic__driver.html#ga70f0287789306f5eb8218c8d8d2f310f">mpu9250_irq_handler</a>(&amp;gs_handle) != 0)</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    {</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    }</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    {</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    }</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;}</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="group__mpu9250__example__driver.html#ga13aacdcbb67e01d92dd6a8ccc77dbae5">   72</a></span>&#160;uint8_t <a class="code" href="group__mpu9250__example__driver.html#ga13aacdcbb67e01d92dd6a8ccc77dbae5">mpu9250_dmp_init</a>(<a class="code" href="group__mpu9250__basic__driver.html#ga7d9cf66109326149ba40c8bee86e12c6">mpu9250_interface_t</a> interface, <a class="code" href="group__mpu9250__basic__driver.html#ga51224d8bd81cd18f40f52a6b0d44bc85">mpu9250_address_t</a> addr_pin,</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;                         <span class="keywordtype">void</span> (*receive_callback)(uint8_t type),</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;                         <span class="keywordtype">void</span> (*tap_callback)(uint8_t count, uint8_t direction),</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;                         <span class="keywordtype">void</span> (*orient_callback)(uint8_t orientation)</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                        )</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;{</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    uint8_t res;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    uint8_t reg;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    int32_t gyro_offset_raw[3];</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    int32_t accel_offset_raw[3];</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    int32_t gyro_offset[3];</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    int32_t accel_offset[3];</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    int8_t gyro_orientation[9] = {1, 0, 0,</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;                                  0, 1, 0,</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;                                  0, 0, 1};</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    </div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="comment">/* link interface function */</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <a class="code" href="group__mpu9250__link__driver.html#ga04bc64a200712b5a5e4f21ca1defbca2">DRIVER_MPU9250_LINK_INIT</a>(&amp;gs_handle, <a class="code" href="structmpu9250__handle__s.html">mpu9250_handle_t</a>);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <a class="code" href="group__mpu9250__link__driver.html#gaa2bc7e5da6f001397b5ea47bb4b63c1a">DRIVER_MPU9250_LINK_IIC_INIT</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__interface__driver.html#ga828c29c3c4bcabab8f2d5a46e258b032">mpu9250_interface_iic_init</a>);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <a class="code" href="group__mpu9250__link__driver.html#ga102471779997baae471d50aa7a6f4ede">DRIVER_MPU9250_LINK_IIC_DEINIT</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__interface__driver.html#ga38f8367930b9d4f6c91f007692b57db6">mpu9250_interface_iic_deinit</a>);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <a class="code" href="group__mpu9250__link__driver.html#ga568ef61d66c46caf156ebd384c8efb92">DRIVER_MPU9250_LINK_IIC_READ</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__interface__driver.html#ga47c6b7d290af5eab7566beec22f31d35">mpu9250_interface_iic_read</a>);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <a class="code" href="group__mpu9250__link__driver.html#ga94ff1addd2347a4251fa4b12496b712d">DRIVER_MPU9250_LINK_IIC_WRITE</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__interface__driver.html#ga3c0ed7f7f0e8efcdb377e6d9565bd623">mpu9250_interface_iic_write</a>);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <a class="code" href="group__mpu9250__link__driver.html#ga160f34aa30bd7cf514b1724ac5d17dba">DRIVER_MPU9250_LINK_SPI_INIT</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__interface__driver.html#gabb4c6312df6cbca9d0dbd20f7669298c">mpu9250_interface_spi_init</a>);</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <a class="code" href="group__mpu9250__link__driver.html#ga9aee2efa38750c2372c783425223def2">DRIVER_MPU9250_LINK_SPI_DEINIT</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__interface__driver.html#gafecbef2fc236dbed7fe843f3dfbfe196">mpu9250_interface_spi_deinit</a>);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <a class="code" href="group__mpu9250__link__driver.html#ga1d3171d44f7f96cd49fbefab81dbfe1b">DRIVER_MPU9250_LINK_SPI_READ</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__interface__driver.html#ga983341ffd2fc96fbf7baf5aabbf841d5">mpu9250_interface_spi_read</a>);</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <a class="code" href="group__mpu9250__link__driver.html#gafe91b7103d17491d32cfc50efd840eda">DRIVER_MPU9250_LINK_SPI_WRITE</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__interface__driver.html#ga2510774a0a51efa0ef71e6b66c128924">mpu9250_interface_spi_write</a>);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <a class="code" href="group__mpu9250__link__driver.html#gacde28e65cc543b440954d4f7d0baab9a">DRIVER_MPU9250_LINK_DELAY_MS</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__interface__driver.html#gaf19d808d558d778f688b5a286d383ec4">mpu9250_interface_delay_ms</a>);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <a class="code" href="group__mpu9250__link__driver.html#gac50364eafa79627bf41bf82173f9876b">DRIVER_MPU9250_LINK_DEBUG_PRINT</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <a class="code" href="group__mpu9250__link__driver.html#ga092da05a1e54a10408010d8cb898a366">DRIVER_MPU9250_LINK_RECEIVE_CALLBACK</a>(&amp;gs_handle, receive_callback);</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="comment">/* set the interface */</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga6d1b57cd5f937f8c9538694554219f09">mpu9250_set_interface</a>(&amp;gs_handle, interface);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    {</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set interface failed.\n&quot;</span>);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;       </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    }</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    <span class="comment">/* set the addr pin */</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga14d223233cac73c46302833bfc4b0fe3">mpu9250_set_addr_pin</a>(&amp;gs_handle, addr_pin);</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    {</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set addr pin failed.\n&quot;</span>);</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;       </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    }</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    </div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="comment">/* init */</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#gac5b9ba3d521630513c0e4f80fead11b2">mpu9250_init</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    {</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: init failed.\n&quot;</span>);</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;       </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    }</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    </div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <span class="comment">/* delay 100 ms */</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <a class="code" href="group__mpu9250__interface__driver.html#gaf19d808d558d778f688b5a286d383ec4">mpu9250_interface_delay_ms</a>(100);</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    </div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="comment">/* disable sleep */</span></div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#gaecb6481f459eb1cb5ad15a7e32d6a1c2">mpu9250_set_sleep</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    {</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set sleep failed.\n&quot;</span>);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;       </div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    }</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    </div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="comment">/* set fifo 1024kb */</span></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga97d5c00f1de8cfdc1a13abf5c502fd36">mpu9250_set_fifo_1024kb</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    {</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set fifo 1024kb failed.\n&quot;</span>);</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;       </div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    }</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    </div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="comment">/* run the self test */</span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga131010e3c74265bbf552ac89cbd3e777">mpu9250_self_test</a>(&amp;gs_handle, gyro_offset_raw, accel_offset_raw);</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    {</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: self test failed.\n&quot;</span>);</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;       </div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    }</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    </div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    </div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="comment">/* if spi interface, disable iic interface */</span></div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="keywordflow">if</span> (interface == <a class="code" href="group__mpu9250__basic__driver.html#gga7d9cf66109326149ba40c8bee86e12c6a4caf275cf35615c231ec06f9bafd87af">MPU9250_INTERFACE_SPI</a>)</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    {</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        <span class="comment">/* disable iic */</span></div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;        res = <a class="code" href="group__mpu9250__basic__driver.html#gaabee5fccd2e52a10c529a09c28ef3630">mpu9250_set_disable_iic_slave</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a3a5a8f91560f481e8745533d2e2d3e75">MPU9250_BOOL_TRUE</a>);</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        {</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;            <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set disable iic slave failed.\n&quot;</span>);</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;            (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;           </div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;            <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;        }</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    }</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    </div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    <span class="comment">/* set fifo 1024kb */</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga97d5c00f1de8cfdc1a13abf5c502fd36">mpu9250_set_fifo_1024kb</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    {</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set fifo 1024kb failed.\n&quot;</span>);</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;       </div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    }</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    </div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    <span class="comment">/* set the default clock source */</span></div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga9ccef86bf71b10f925f1a43b8891f724">mpu9250_set_clock_source</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga8f4f8e678889fd3e8f7a95bc34c69fc9">MPU9250_DMP_DEFAULT_CLOCK_SOURCE</a>);</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    {</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set clock source failed.\n&quot;</span>);</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;       </div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    }</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    </div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    <span class="comment">/* set the default rate */</span></div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#gab8ef8d4cc839a2fbcb55e65330b1ba0b">mpu9250_set_sample_rate_divider</a>(&amp;gs_handle, (1000 / <a class="code" href="group__mpu9250__example__driver.html#ga97cfcd6b1f9cecd2c7ee3c49d8a84bb7">MPU9250_DMP_DEFAULT_RATE</a>) - 1);</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    {</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set sample rate divider failed.\n&quot;</span>);</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;       </div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    }</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    </div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <span class="comment">/* set the default accelerometer range */</span></div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#gadf326e1597e13e17ac02289be4772797">mpu9250_set_accelerometer_range</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#gad56eb24c9e6ab9dc3132a8544ee30481">MPU9250_DMP_DEFAULT_ACCELEROMETER_RANGE</a>);</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    {</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set accelerometer range failed.\n&quot;</span>);</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;       </div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    }</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    </div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    <span class="comment">/* set the default gyroscope_range */</span></div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#gacd41a8826a124f4a1bddfe6c346a85cd">mpu9250_set_gyroscope_range</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#gaf82312a43343d8b54b843c21b0816409">MPU9250_DMP_DEFAULT_GYROSCOPE_RANGE</a>);</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    {</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set gyroscope range failed.\n&quot;</span>);</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;       </div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    }</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    </div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    <span class="comment">/* set the default low pass filter */</span></div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga9b899b894453de709ee47aefb730660d">mpu9250_set_low_pass_filter</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#gae7088b5c46c4b47372ebf7324c440102">MPU9250_DMP_DEFAULT_LOW_PASS_FILTER</a>);</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    {</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set low pass filter failed.\n&quot;</span>);</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;       </div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    }</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    </div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    <span class="comment">/* enable temperature sensor */</span></div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga18940c2dfb124723d7485d2323a80341">mpu9250_set_ptat</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a3a5a8f91560f481e8745533d2e2d3e75">MPU9250_BOOL_TRUE</a>);</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    {</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set ptat failed.\n&quot;</span>);</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;       </div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    }</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    </div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <span class="comment">/* set the default cycle wake up */</span></div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga26f412894624bb62d43eb0b4e0787cf1">mpu9250_set_cycle_wake_up</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga0cff912f261fbc735ce3d1e545c1ee66">MPU9250_DMP_DEFAULT_CYCLE_WAKE_UP</a>);</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    {</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set cycle wake up failed.\n&quot;</span>);</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;       </div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    }</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    </div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;    <span class="comment">/* enable acc x */</span></div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga1e53851ce6213550ff456e7099ddff89">mpu9250_set_standby_mode</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga7b211bf948250fd521f5bac73a542636ae477a2db070db29a1d42c3642e0a852c">MPU9250_SOURCE_ACC_X</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    {</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set standby mode failed.\n&quot;</span>);</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;       </div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;    }</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    </div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    <span class="comment">/* enable acc y */</span></div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga1e53851ce6213550ff456e7099ddff89">mpu9250_set_standby_mode</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga7b211bf948250fd521f5bac73a542636af07fd4400b5c31be0662c3832169a6a2">MPU9250_SOURCE_ACC_Y</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    {</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set standby mode failed.\n&quot;</span>);</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;       </div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    }</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    </div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    <span class="comment">/* enable acc z */</span></div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga1e53851ce6213550ff456e7099ddff89">mpu9250_set_standby_mode</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga7b211bf948250fd521f5bac73a542636a71c849f57b5e779d0ee6be8a3a12db9d">MPU9250_SOURCE_ACC_Z</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    {</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set standby mode failed.\n&quot;</span>);</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;       </div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    }</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    </div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;    <span class="comment">/* enable gyro x */</span></div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga1e53851ce6213550ff456e7099ddff89">mpu9250_set_standby_mode</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga7b211bf948250fd521f5bac73a542636a3573959e91e21dba82de8249f4e7b523">MPU9250_SOURCE_GYRO_X</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    {</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set standby mode failed.\n&quot;</span>);</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;       </div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    }</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    </div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;    <span class="comment">/* enable gyro y */</span></div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga1e53851ce6213550ff456e7099ddff89">mpu9250_set_standby_mode</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga7b211bf948250fd521f5bac73a542636abe9b9f9313d0c2d6da6f0280e42f83bd">MPU9250_SOURCE_GYRO_Y</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    {</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set standby mode failed.\n&quot;</span>);</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;       </div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    }</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;    </div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    <span class="comment">/* enable gyro z */</span></div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga1e53851ce6213550ff456e7099ddff89">mpu9250_set_standby_mode</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga7b211bf948250fd521f5bac73a542636adbf686e57542b017ae156ea7263b6003">MPU9250_SOURCE_GYRO_Z</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    {</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set standby mode failed.\n&quot;</span>);</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;       </div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    }</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;    </div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    <span class="comment">/* disable gyroscope x test */</span></div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga9c164e91b829975d85a9e7a8f7eabbed">mpu9250_set_gyroscope_test</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggae57dfba234eed087f521fa33f265e696a4b888eb6e9680c184453c3a082cd3b71">MPU9250_AXIS_X</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    {</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set gyroscope test failed.\n&quot;</span>);</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;       </div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;    }</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    </div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    <span class="comment">/* disable gyroscope y test */</span></div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga9c164e91b829975d85a9e7a8f7eabbed">mpu9250_set_gyroscope_test</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggae57dfba234eed087f521fa33f265e696afb7425b9e1f9baf5439c3ac46f262886">MPU9250_AXIS_Y</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    {</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set gyroscope test failed.\n&quot;</span>);</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;       </div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    }</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;    </div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    <span class="comment">/* disable gyroscope z test */</span></div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga9c164e91b829975d85a9e7a8f7eabbed">mpu9250_set_gyroscope_test</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggae57dfba234eed087f521fa33f265e696ad38dea27580098dac50c53f1ffe560c9">MPU9250_AXIS_Z</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    {</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set gyroscope test failed.\n&quot;</span>);</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;       </div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;    }</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    </div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    <span class="comment">/* disable accelerometer x test */</span></div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga64d91338d58bcdedeea01ae4d5007649">mpu9250_set_accelerometer_test</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggae57dfba234eed087f521fa33f265e696a4b888eb6e9680c184453c3a082cd3b71">MPU9250_AXIS_X</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;    {</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set accelerometer test failed.\n&quot;</span>);</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;       </div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    }</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    </div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    <span class="comment">/* disable accelerometer y test */</span></div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga64d91338d58bcdedeea01ae4d5007649">mpu9250_set_accelerometer_test</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggae57dfba234eed087f521fa33f265e696afb7425b9e1f9baf5439c3ac46f262886">MPU9250_AXIS_Y</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;    {</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set accelerometer test failed.\n&quot;</span>);</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;       </div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    }</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    </div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    <span class="comment">/* disable accelerometer z test */</span></div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga64d91338d58bcdedeea01ae4d5007649">mpu9250_set_accelerometer_test</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggae57dfba234eed087f521fa33f265e696ad38dea27580098dac50c53f1ffe560c9">MPU9250_AXIS_Z</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;    {</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set accelerometer test failed.\n&quot;</span>);</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;       </div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    }</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    </div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    <span class="comment">/* disable temp fifo */</span></div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga1c42ba5fb3c135f61d7f783274595212">mpu9250_set_fifo_enable</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggaf85a7c775594df03179f101c03939a20acddeff60c59661a88aad42096e4ce0fe">MPU9250_FIFO_TEMP</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;    {</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set fifo enable failed.\n&quot;</span>);</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;       </div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;    }</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    </div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    <span class="comment">/* disable xg fifo */</span></div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga1c42ba5fb3c135f61d7f783274595212">mpu9250_set_fifo_enable</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggaf85a7c775594df03179f101c03939a20a12fbd194426a5a760ecd347da555ea84">MPU9250_FIFO_XG</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    {</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set fifo enable failed.\n&quot;</span>);</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;       </div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;    }</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;    </div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;    <span class="comment">/* disable yg fifo */</span></div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga1c42ba5fb3c135f61d7f783274595212">mpu9250_set_fifo_enable</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggaf85a7c775594df03179f101c03939a20a140f228c52080b9392c612a4300652c3">MPU9250_FIFO_YG</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;    {</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set fifo enable failed.\n&quot;</span>);</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;       </div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;    }</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;    </div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;    <span class="comment">/* disable zg fifo */</span></div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga1c42ba5fb3c135f61d7f783274595212">mpu9250_set_fifo_enable</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggaf85a7c775594df03179f101c03939a20a8f48af59a15ec65a25a73699e45756d5">MPU9250_FIFO_ZG</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;    {</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set fifo enable failed.\n&quot;</span>);</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;       </div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;    }</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;    </div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    <span class="comment">/* disable accel fifo */</span></div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga1c42ba5fb3c135f61d7f783274595212">mpu9250_set_fifo_enable</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggaf85a7c775594df03179f101c03939a20a963aef966265b0b81855f8e1f3452bd9">MPU9250_FIFO_ACCEL</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a>);</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;    {</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set fifo enable failed.\n&quot;</span>);</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;       </div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    }</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;    </div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;    <span class="comment">/* enable fifo */</span></div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#gac255f046ade796f75489d130e9270690">mpu9250_set_fifo</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a3a5a8f91560f481e8745533d2e2d3e75">MPU9250_BOOL_TRUE</a>);</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;    {</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set fifo failed.\n&quot;</span>);</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;       </div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;    }</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;    </div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;    <span class="comment">/* set the default interrupt level */</span></div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga65085341214ac1bf8b424278319249c3">mpu9250_set_interrupt_level</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#gabbfe360e8bc66057b31954be2b54644f">MPU9250_DMP_DEFAULT_INTERRUPT_PIN_LEVEL</a>);</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;    {</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set interrupt level failed.\n&quot;</span>);</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;       </div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;    }</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;    </div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;    <span class="comment">/* set the default interrupt pin type */</span></div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#gad41a29c64249b8ad014418deacffad92">mpu9250_set_interrupt_pin_type</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga191c51cadf47a5d1b7239f8cbb0e8cd6">MPU9250_DMP_DEFAULT_INTERRUPT_PIN_TYPE</a>);</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;    {</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set interrupt pin type failed.\n&quot;</span>);</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;       </div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;    }</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;    </div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;    <span class="keywordflow">if</span> (tap_callback != NULL)</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;    {</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;        <span class="comment">/* set the default motion threshold */</span></div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;        res = <a class="code" href="group__mpu9250__basic__driver.html#ga9ab3e582e544dc7473be5eb3be98785d">mpu9250_motion_threshold_convert_to_register</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#gac05f9046bf33046f3968fde34dbfc10d">MPU9250_DMP_DEFAULT_MOTION_THRESHOLD</a>, &amp;reg);</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;        <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;        {</div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;            <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: motion threshold convert to register failed.\n&quot;</span>);</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;            (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;           </div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;            <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;        }</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;        </div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;        <span class="comment">/* set the motion threshold */</span></div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;        res = <a class="code" href="group__mpu9250__basic__driver.html#ga89eff30acbfe4db064773b26ccc4dd23">mpu9250_set_motion_threshold</a>(&amp;gs_handle, reg);</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;        <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;        {</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;            <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set motion threshold failed.\n&quot;</span>);</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;            (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;           </div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;            <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;        }</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;        </div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;        <span class="comment">/* enable wake on motion */</span></div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;        res = <a class="code" href="group__mpu9250__basic__driver.html#ga0d186c577cd772ff1d1aba5ad9afc514">mpu9250_set_wake_on_motion</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a3a5a8f91560f481e8745533d2e2d3e75">MPU9250_BOOL_TRUE</a>);</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;        <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;        {</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;            <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set wake on motion failed.\n&quot;</span>);</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;            (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;           </div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;            <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;        }</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    }</div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;    </div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;    <span class="comment">/* set the default motion interrupt */</span></div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga88c8110fc3cc1f5fe2e58d603e834e84">mpu9250_set_interrupt</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga759b7cd8b95661bfc10bb71f5ebb10e2a5030e2c21c74ff66479b79b79d6450e5">MPU9250_INTERRUPT_MOTION</a>, <a class="code" href="group__mpu9250__example__driver.html#ga7961c22618237850eee0c5f662f01571">MPU9250_DMP_DEFAULT_INTERRUPT_MOTION</a>);</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;    {</div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set interrupt failed.\n&quot;</span>);</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;       </div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;    }</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;    </div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;    <span class="comment">/* set the default fifo overflow interrupt */</span></div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga88c8110fc3cc1f5fe2e58d603e834e84">mpu9250_set_interrupt</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga759b7cd8b95661bfc10bb71f5ebb10e2ae7185bca3ffebaa61271eb46d41615c9">MPU9250_INTERRUPT_FIFO_OVERFLOW</a>, <a class="code" href="group__mpu9250__example__driver.html#gac45ce55bd530b9aa8b650ebda577900f">MPU9250_DMP_DEFAULT_INTERRUPT_FIFO_OVERFLOW</a>);</div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;    {</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set interrupt failed.\n&quot;</span>);</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;       </div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;    }</div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;    </div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;    <span class="comment">/* set the default dmp interrupt */</span></div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga88c8110fc3cc1f5fe2e58d603e834e84">mpu9250_set_interrupt</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga759b7cd8b95661bfc10bb71f5ebb10e2ad245c997e25ffa5c010b1206f0a183ce">MPU9250_INTERRUPT_DMP</a>, <a class="code" href="group__mpu9250__example__driver.html#ga75563f798589992ca48df0fa22f642b0">MPU9250_DMP_DEFAULT_INTERRUPT_DMP</a>);</div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;    {</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set interrupt failed.\n&quot;</span>);</div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;       </div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;    }</div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;    </div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;    <span class="comment">/* set the default fsync int interrupt */</span></div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga88c8110fc3cc1f5fe2e58d603e834e84">mpu9250_set_interrupt</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga759b7cd8b95661bfc10bb71f5ebb10e2aa3fc19b2cca3bc1751ee797df869963c">MPU9250_INTERRUPT_FSYNC_INT</a>, <a class="code" href="group__mpu9250__example__driver.html#gacf743928f32edfbb544034a4f9529c7a">MPU9250_DMP_DEFAULT_INTERRUPT_FSYNC_INT</a>);</div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;    {</div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set interrupt failed.\n&quot;</span>);</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;       </div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;    }</div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;    </div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;    <span class="comment">/* set the default data ready interrupt */</span></div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga88c8110fc3cc1f5fe2e58d603e834e84">mpu9250_set_interrupt</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga759b7cd8b95661bfc10bb71f5ebb10e2a56a52905e782fac90618ac0bd137de8c">MPU9250_INTERRUPT_DATA_READY</a>, <a class="code" href="group__mpu9250__example__driver.html#ga3f2af4350a9331e3a9f3e608c13e20cc">MPU9250_DMP_DEFAULT_INTERRUPT_DATA_READY</a>);</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;    {</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set interrupt failed.\n&quot;</span>);</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;       </div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;    }</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;    </div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;    <span class="comment">/* set the default latch */</span></div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga2b38791132acc7a8790b0065114f244c">mpu9250_set_interrupt_latch</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga1c7f8d3ebcab926ef90a6e456aee4783">MPU9250_DMP_DEFAULT_INTERRUPT_LATCH</a>);</div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;    {</div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set interrupt latch failed.\n&quot;</span>);</div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;       </div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;    }</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;    </div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;    <span class="comment">/* set the default interrupt read clear */</span></div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga6adae77c7184ffeeab4ad26ad635742e">mpu9250_set_interrupt_read_clear</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#gaa081ce8680c234a5da448d0987879934">MPU9250_DMP_DEFAULT_INTERRUPT_READ_CLEAR</a>);</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;    {</div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set interrupt read clear failed.\n&quot;</span>);</div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;       </div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;    }</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;    </div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;    <span class="comment">/* set the default extern sync */</span></div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga39452e3f106a9e536563684cde3a9653">mpu9250_set_extern_sync</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga029ecb6bfc6ca3c53df8f8903d83a6b0">MPU9250_DMP_DEFAULT_EXTERN_SYNC</a>);</div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;    {</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set extern sync failed.\n&quot;</span>);</div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;       </div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;    }</div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;    </div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;    <span class="comment">/* set the default fsync interrupt */</span></div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga54c787d00afa16de37b15bf7c4add339">mpu9250_set_fsync_interrupt</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga70205183eb24a82676a7dfa817b4d041">MPU9250_DMP_DEFAULT_FSYNC_INTERRUPT</a>);</div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;    {</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set fsync interrupt failed.\n&quot;</span>);</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;       </div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;    }</div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;    </div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;    <span class="comment">/* set the default fsync interrupt level */</span></div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga8a369f25689d107c3307e2f197c4aa84">mpu9250_set_fsync_interrupt_level</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga3fcec5a9dd269f4077532d5840289886">MPU9250_DMP_DEFAULT_FSYNC_INTERRUPT_LEVEL</a>);</div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;    {</div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set fsync interrupt level failed.\n&quot;</span>);</div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;       </div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;    }</div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;    </div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;    <span class="comment">/* set the default iic master */</span></div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#gaddc9799db34bfb9ee0a8a12c05f4bae9">mpu9250_set_iic_master</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga2e57d8f05d9d09c7ebbb790230f3c3e4">MPU9250_DMP_DEFAULT_IIC_MASTER</a>);</div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;    {</div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set iic master failed.\n&quot;</span>);</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;       </div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;    }</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;    </div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;    <span class="comment">/* set the default iic bypass */</span></div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga5b348d7e792fa1dd2ce9af2bc377c8d6">mpu9250_set_iic_bypass</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga08c3533ae3071e230db10f297ce81794">MPU9250_DMP_DEFAULT_IIC_BYPASS</a>);</div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;    {</div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set iic bypass failed.\n&quot;</span>);</div>
<div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;       </div>
<div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;    }</div>
<div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;    </div>
<div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;    <span class="comment">/* set the default gyro standby */</span></div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga3d45ac5d4a5a3bbe21d3ad2644ab02ce">mpu9250_set_gyro_standby</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#gafdf1ea18c96b7c4b2cc22d5fca5814fe">MPU9250_DMP_DEFAULT_GYROSCOPE_STANDBY</a>);</div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;    {</div>
<div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set gyro standby failed.\n&quot;</span>);</div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;       </div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;    }</div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;    </div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;    <span class="comment">/* set the default fifo mode */</span></div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga118157bbb7d19b2873fc8aa208f72433">mpu9250_set_fifo_mode</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#gabfd08db6d08bdeab4313e23c0517041f">MPU9250_DMP_DEFAULT_FIFO_MODE</a>);</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;    {</div>
<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set fifo mode failed.\n&quot;</span>);</div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;       </div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;    }</div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;    </div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;    <span class="comment">/* set the default gyroscope choice */</span></div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga8eb45281513e749459d44bf0be2da7f4">mpu9250_set_gyroscope_choice</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga150d755d9d1e04774a70370def1f51dc">MPU9250_DMP_DEFAULT_GYROSCOPE_CHOICE</a>);</div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;    {</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set gyroscope choice failed.\n&quot;</span>);</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;       </div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;    }</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;    </div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;    <span class="comment">/* set the default low pass filter */</span></div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga9b899b894453de709ee47aefb730660d">mpu9250_set_low_pass_filter</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#gae7088b5c46c4b47372ebf7324c440102">MPU9250_DMP_DEFAULT_LOW_PASS_FILTER</a>);</div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;    {</div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set low pass filter failed.\n&quot;</span>);</div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;       </div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;    }</div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;    </div>
<div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;    <span class="comment">/* set the default accelerometer choice */</span></div>
<div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#gac9772ee923bba8f8adc80ef85362223b">mpu9250_set_accelerometer_choice</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#gafa9c8abaea97cac6872f943a8d70b4a8">MPU9250_DMP_DEFAULT_ACCELEROMETER_CHOICE</a>);</div>
<div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;    {</div>
<div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set accelerometer choice failed.\n&quot;</span>);</div>
<div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;       </div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;    }</div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;    </div>
<div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;    <span class="comment">/* set the default accelerometer low pass filter */</span></div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga070e0be03ff82b63a621b28d7cfb9ef6">mpu9250_set_accelerometer_low_pass_filter</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#gab2648c54d84590ed0d49d5ab2655552e">MPU9250_DMP_DEFAULT_ACCELEROMETER_LOW_PASS_FILTER</a>);</div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;    {</div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set accelerometer low pass filter failed.\n&quot;</span>);</div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160;       </div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;    }</div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;    </div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;    <span class="comment">/* set the default low power accel output rate */</span></div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga9f63addba99f20e170f3a8a0cc76d453">mpu9250_set_low_power_accel_output_rate</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga9ebabd16e23d670f86a7b4075e7d9ba1">MPU9250_DMP_DEFAULT_LOW_POWER_ACCEL_OUTPUT_RATE</a>);</div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;    {</div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set low power accel output rate failed.\n&quot;</span>);</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;       </div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;    }</div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;    </div>
<div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;    <span class="comment">/* set the default accel compare with previous sample */</span></div>
<div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#ga10b8978ff7747aad1603f0a436e38697">mpu9250_set_accel_compare_with_previous_sample</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#gab0d49b0ae1d5bb28ea88e52f404e6ef3">MPU9250_DMP_DEFAULT_ACCELEROMETER_COMPARE</a>);</div>
<div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160;    {</div>
<div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: set accel compare with previous sample failed.\n&quot;</span>);</div>
<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;       </div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;    }</div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;    </div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;    <span class="comment">/* dmp load firmware */</span></div>
<div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#ga3f8bf147a88064e43176cf692a77822a">mpu9250_dmp_load_firmware</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;    {</div>
<div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp load firmware failed.\n&quot;</span>);</div>
<div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;       </div>
<div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;    }</div>
<div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;    </div>
<div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160;    <span class="comment">/* enable axis x */</span></div>
<div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#ga49211f23e5026fb2d129d713d87aad97">mpu9250_dmp_set_tap_axes</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggae57dfba234eed087f521fa33f265e696a4b888eb6e9680c184453c3a082cd3b71">MPU9250_AXIS_X</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a3a5a8f91560f481e8745533d2e2d3e75">MPU9250_BOOL_TRUE</a>);</div>
<div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;    {</div>
<div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set tap axes failed.\n&quot;</span>);</div>
<div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;       </div>
<div class="line"><a name="l00707"></a><span class="lineno">  707</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00708"></a><span class="lineno">  708</span>&#160;    }</div>
<div class="line"><a name="l00709"></a><span class="lineno">  709</span>&#160;    </div>
<div class="line"><a name="l00710"></a><span class="lineno">  710</span>&#160;    <span class="comment">/* enable axis y */</span></div>
<div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#ga49211f23e5026fb2d129d713d87aad97">mpu9250_dmp_set_tap_axes</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggae57dfba234eed087f521fa33f265e696afb7425b9e1f9baf5439c3ac46f262886">MPU9250_AXIS_Y</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a3a5a8f91560f481e8745533d2e2d3e75">MPU9250_BOOL_TRUE</a>);</div>
<div class="line"><a name="l00712"></a><span class="lineno">  712</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00713"></a><span class="lineno">  713</span>&#160;    {</div>
<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set tap axes failed.\n&quot;</span>);</div>
<div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160;       </div>
<div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;    }</div>
<div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;    </div>
<div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;    <span class="comment">/* enable axis z */</span></div>
<div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#ga49211f23e5026fb2d129d713d87aad97">mpu9250_dmp_set_tap_axes</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggae57dfba234eed087f521fa33f265e696ad38dea27580098dac50c53f1ffe560c9">MPU9250_AXIS_Z</a>, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a3a5a8f91560f481e8745533d2e2d3e75">MPU9250_BOOL_TRUE</a>);</div>
<div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;    {</div>
<div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set tap axes failed.\n&quot;</span>);</div>
<div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160;       </div>
<div class="line"><a name="l00727"></a><span class="lineno">  727</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160;    }</div>
<div class="line"><a name="l00729"></a><span class="lineno">  729</span>&#160;    </div>
<div class="line"><a name="l00730"></a><span class="lineno">  730</span>&#160;    <span class="comment">/* set the default fifo rate */</span></div>
<div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#ga367d8b21fdb2c27ed41d617e2c77a29f">mpu9250_dmp_set_fifo_rate</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga97cfcd6b1f9cecd2c7ee3c49d8a84bb7">MPU9250_DMP_DEFAULT_RATE</a>);</div>
<div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;    {</div>
<div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set fifo rate failed.\n&quot;</span>);</div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;       </div>
<div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;    }</div>
<div class="line"><a name="l00739"></a><span class="lineno">  739</span>&#160;    </div>
<div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;    <span class="comment">/* set the default interrupt mode */</span></div>
<div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#ga7175c011118e878111a01d534e65e0b2">mpu9250_dmp_set_interrupt_mode</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#gad15dcebbcba7b5c0a7e34bcc832a1a93">MPU9250_DMP_DEFAULT_INTERRUPT_MODE</a>);</div>
<div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160;    {</div>
<div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set interrupt mode failed.\n&quot;</span>);</div>
<div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;       </div>
<div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;    }</div>
<div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;    </div>
<div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;    <span class="comment">/* set the default dmp orientation */</span></div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#ga2d0e9bf93b2ddd8ca9de4b0ee8a83eea">mpu9250_dmp_set_orientation</a>(&amp;gs_handle, gyro_orientation);</div>
<div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;    {</div>
<div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set orientation failed.\n&quot;</span>);</div>
<div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00756"></a><span class="lineno">  756</span>&#160;       </div>
<div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;    }</div>
<div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;    </div>
<div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;    <span class="comment">/* enable feature */</span></div>
<div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#ga5ede8c500e8bf155b61b6f54b039b042">mpu9250_dmp_set_feature</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__dmp__driver.html#gga0c8f2e116fa3e90c2c7e99c98acd426ea0b1738e89b3ba129176b1008982b4820">MPU9250_DMP_FEATURE_6X_QUAT</a> | <a class="code" href="group__mpu9250__dmp__driver.html#gga0c8f2e116fa3e90c2c7e99c98acd426eaac255f58814e0c3c1dbe5d56c237a363">MPU9250_DMP_FEATURE_TAP</a> | <a class="code" href="group__mpu9250__dmp__driver.html#gga0c8f2e116fa3e90c2c7e99c98acd426ea44d75a6fe346a6406dce04c513095729">MPU9250_DMP_FEATURE_PEDOMETER</a> |</div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;                                              <a class="code" href="group__mpu9250__dmp__driver.html#gga0c8f2e116fa3e90c2c7e99c98acd426eaea2f25b401ae798ab5ed96f8d64c00af">MPU9250_DMP_FEATURE_ORIENT</a> | <a class="code" href="group__mpu9250__dmp__driver.html#gga0c8f2e116fa3e90c2c7e99c98acd426ea637169e5cf43d1813309afc7ea2a83f2">MPU9250_DMP_FEATURE_SEND_RAW_ACCEL</a> |</div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;                                              <a class="code" href="group__mpu9250__dmp__driver.html#gga0c8f2e116fa3e90c2c7e99c98acd426ea533b43c3a724bb0f2f5d5579d9880fe0">MPU9250_DMP_FEATURE_SEND_CAL_GYRO</a> | <a class="code" href="group__mpu9250__dmp__driver.html#gga0c8f2e116fa3e90c2c7e99c98acd426ea3a831f327d65e46ca86dbfc86ba6a180">MPU9250_DMP_FEATURE_GYRO_CAL</a>);</div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;    {</div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set feature failed.\n&quot;</span>);</div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;       </div>
<div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160;    }</div>
<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;    </div>
<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;    <span class="comment">/* dmp set tap callback */</span></div>
<div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#ga0e52f54a78c294d505548f7b83584692">mpu9250_dmp_set_tap_callback</a>(&amp;gs_handle, tap_callback);</div>
<div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160;    {</div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set tap callback failed.\n&quot;</span>);</div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;       </div>
<div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160;    }</div>
<div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;    </div>
<div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160;    <span class="comment">/* dmp set orient callback */</span></div>
<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#ga7059b4ef0ccf3a16ce49c753bf07f9b2">mpu9250_dmp_set_orient_callback</a>(&amp;gs_handle, orient_callback);</div>
<div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;    {</div>
<div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set orient callback failed.\n&quot;</span>);</div>
<div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;       </div>
<div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;    }</div>
<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;    </div>
<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160;    <span class="comment">/* set the default pedometer walk time */</span></div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#gae0f7c1839668402b48f2299ce26e0f10">mpu9250_dmp_set_pedometer_walk_time</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga59eb050f414bb020e8f79d52b6724afd">MPU9250_DMP_DEFAULT_PEOMETER_WALK_TIME</a>);</div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160;    {</div>
<div class="line"><a name="l00796"></a><span class="lineno">  796</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set pedometer walk time failed.\n&quot;</span>);</div>
<div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00798"></a><span class="lineno">  798</span>&#160;       </div>
<div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160;    }</div>
<div class="line"><a name="l00801"></a><span class="lineno">  801</span>&#160;    </div>
<div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;    <span class="comment">/* set the default pedometer step count */</span></div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#ga8d5e2c05ec490da12b381d85c22b03dd">mpu9250_dmp_set_pedometer_step_count</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga1f4df3cbcab7e61f19aa40454a86901a">MPU9250_DMP_DEFAULT_PEOMETER_STEP_COUNT</a>);</div>
<div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;    {</div>
<div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set pedometer step count failed.\n&quot;</span>);</div>
<div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160;       </div>
<div class="line"><a name="l00809"></a><span class="lineno">  809</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00810"></a><span class="lineno">  810</span>&#160;    }</div>
<div class="line"><a name="l00811"></a><span class="lineno">  811</span>&#160;    </div>
<div class="line"><a name="l00812"></a><span class="lineno">  812</span>&#160;    <span class="comment">/* set the default shake reject timeout */</span></div>
<div class="line"><a name="l00813"></a><span class="lineno">  813</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#ga180005e5ba56486ac84dfd9f2a8d82ea">mpu9250_dmp_set_shake_reject_timeout</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga580a94f65867ae3ff7798e02bb00c55c">MPU9250_DMP_DEFAULT_SHAKE_REJECT_TIMEOUT</a>);</div>
<div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;    {</div>
<div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set shake reject timeout failed.\n&quot;</span>);</div>
<div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;       </div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;    }</div>
<div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;    </div>
<div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160;    <span class="comment">/* set the default shake reject time */</span></div>
<div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#gaa86b7b19c12ab62b80da781a45d78d91">mpu9250_dmp_set_shake_reject_time</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga3742ad0bcb734d627142e26e0ea0cf7b">MPU9250_DMP_DEFAULT_SHAKE_REJECT_TIME</a>);</div>
<div class="line"><a name="l00824"></a><span class="lineno">  824</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160;    {</div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set shake reject time failed.\n&quot;</span>);</div>
<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;       </div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;    }</div>
<div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;    </div>
<div class="line"><a name="l00832"></a><span class="lineno">  832</span>&#160;    <span class="comment">/* set the default shake reject thresh */</span></div>
<div class="line"><a name="l00833"></a><span class="lineno">  833</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#ga615a1c1bd026e8532a4f2e86c1e2a275">mpu9250_dmp_set_shake_reject_thresh</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga4ee015e5a8c2d91bedc921c8967ba1cd">MPU9250_DMP_DEFAULT_SHAKE_REJECT_THRESH</a>);</div>
<div class="line"><a name="l00834"></a><span class="lineno">  834</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00835"></a><span class="lineno">  835</span>&#160;    {</div>
<div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set shake reject thresh failed.\n&quot;</span>);</div>
<div class="line"><a name="l00837"></a><span class="lineno">  837</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;       </div>
<div class="line"><a name="l00839"></a><span class="lineno">  839</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;    }</div>
<div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160;    </div>
<div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;    <span class="comment">/* set the default tap time multi */</span></div>
<div class="line"><a name="l00843"></a><span class="lineno">  843</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#gaf37dae8db187a48d42752d0e0c203e26">mpu9250_dmp_set_tap_time_multi</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga912e1593042964c15abf5aeecf09ebfc">MPU9250_DMP_DEFAULT_TAP_TIME_MULTI</a>);</div>
<div class="line"><a name="l00844"></a><span class="lineno">  844</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00845"></a><span class="lineno">  845</span>&#160;    {</div>
<div class="line"><a name="l00846"></a><span class="lineno">  846</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set tap time multi failed.\n&quot;</span>);</div>
<div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160;       </div>
<div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;    }</div>
<div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160;    </div>
<div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;    <span class="comment">/* set the default tap time */</span></div>
<div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#gad1f437e76b5826e2ae15991b15955f43">mpu9250_dmp_set_tap_time</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#gab1a7ea99ecf1457026e9b29dd182e2fe">MPU9250_DMP_DEFAULT_TAP_TIME</a>);</div>
<div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;    {</div>
<div class="line"><a name="l00856"></a><span class="lineno">  856</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set tap time failed.\n&quot;</span>);</div>
<div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;       </div>
<div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00860"></a><span class="lineno">  860</span>&#160;    }</div>
<div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160;    </div>
<div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;    <span class="comment">/* set the default min tap count */</span></div>
<div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#gadd45eb2b89daa8862d5ba2913568c77b">mpu9250_dmp_set_min_tap_count</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__example__driver.html#ga97f1833113872da37c6650862028a977">MPU9250_DMP_DEFAULT_MIN_TAP_COUNT</a>);</div>
<div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;    {</div>
<div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set min tap count failed.\n&quot;</span>);</div>
<div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160;       </div>
<div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;    }</div>
<div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160;    </div>
<div class="line"><a name="l00872"></a><span class="lineno">  872</span>&#160;    <span class="comment">/* set the default tap thresh x */</span></div>
<div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#gad416d20fbcb68127ca7da73b6f79fa7f">mpu9250_dmp_set_tap_thresh</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggae57dfba234eed087f521fa33f265e696a4b888eb6e9680c184453c3a082cd3b71">MPU9250_AXIS_X</a>, <a class="code" href="group__mpu9250__example__driver.html#gab5c61b14873d665849ea8457ecf91e8d">MPU9250_DMP_DEFAULT_TAP_X_THRESH</a>);</div>
<div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160;    {</div>
<div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set tap thresh failed.\n&quot;</span>);</div>
<div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;       </div>
<div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00880"></a><span class="lineno">  880</span>&#160;    }</div>
<div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160; </div>
<div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160;    <span class="comment">/* set the default tap thresh y */</span></div>
<div class="line"><a name="l00883"></a><span class="lineno">  883</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#gad416d20fbcb68127ca7da73b6f79fa7f">mpu9250_dmp_set_tap_thresh</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggae57dfba234eed087f521fa33f265e696afb7425b9e1f9baf5439c3ac46f262886">MPU9250_AXIS_Y</a>,<a class="code" href="group__mpu9250__example__driver.html#ga9d379158a4f48f12dde139bc40f280be">MPU9250_DMP_DEFAULT_TAP_Y_THRESH</a>);</div>
<div class="line"><a name="l00884"></a><span class="lineno">  884</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00885"></a><span class="lineno">  885</span>&#160;    {</div>
<div class="line"><a name="l00886"></a><span class="lineno">  886</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set tap thresh failed.\n&quot;</span>);</div>
<div class="line"><a name="l00887"></a><span class="lineno">  887</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00888"></a><span class="lineno">  888</span>&#160;       </div>
<div class="line"><a name="l00889"></a><span class="lineno">  889</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00890"></a><span class="lineno">  890</span>&#160;    }</div>
<div class="line"><a name="l00891"></a><span class="lineno">  891</span>&#160;    </div>
<div class="line"><a name="l00892"></a><span class="lineno">  892</span>&#160;    <span class="comment">/* set the default tap thresh z */</span></div>
<div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#gad416d20fbcb68127ca7da73b6f79fa7f">mpu9250_dmp_set_tap_thresh</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#ggae57dfba234eed087f521fa33f265e696ad38dea27580098dac50c53f1ffe560c9">MPU9250_AXIS_Z</a>, <a class="code" href="group__mpu9250__example__driver.html#ga06c361ce0fccdbe4503f0788f9b8edbc">MPU9250_DMP_DEFAULT_TAP_Z_THRESH</a>);</div>
<div class="line"><a name="l00894"></a><span class="lineno">  894</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00895"></a><span class="lineno">  895</span>&#160;    {</div>
<div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set tap thresh failed.\n&quot;</span>);</div>
<div class="line"><a name="l00897"></a><span class="lineno">  897</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00898"></a><span class="lineno">  898</span>&#160;       </div>
<div class="line"><a name="l00899"></a><span class="lineno">  899</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00900"></a><span class="lineno">  900</span>&#160;    }</div>
<div class="line"><a name="l00901"></a><span class="lineno">  901</span>&#160;    </div>
<div class="line"><a name="l00902"></a><span class="lineno">  902</span>&#160;    <span class="comment">/* dmp gyro accel raw offset convert */</span></div>
<div class="line"><a name="l00903"></a><span class="lineno">  903</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#gad18711ef125f9ef79046bf67238f9a97">mpu9250_dmp_gyro_accel_raw_offset_convert</a>(&amp;gs_handle, gyro_offset_raw, accel_offset_raw, </div>
<div class="line"><a name="l00904"></a><span class="lineno">  904</span>&#160;                                                    gyro_offset, accel_offset);</div>
<div class="line"><a name="l00905"></a><span class="lineno">  905</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;    {</div>
<div class="line"><a name="l00907"></a><span class="lineno">  907</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp gyro accel raw offset convert failed.\n&quot;</span>);</div>
<div class="line"><a name="l00908"></a><span class="lineno">  908</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00909"></a><span class="lineno">  909</span>&#160;       </div>
<div class="line"><a name="l00910"></a><span class="lineno">  910</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00911"></a><span class="lineno">  911</span>&#160;    }</div>
<div class="line"><a name="l00912"></a><span class="lineno">  912</span>&#160;    </div>
<div class="line"><a name="l00913"></a><span class="lineno">  913</span>&#160;    <span class="comment">/* dmp set accel bias */</span></div>
<div class="line"><a name="l00914"></a><span class="lineno">  914</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#ga0d1dd18beda7cfda85110182e5b9574b">mpu9250_dmp_set_accel_bias</a>(&amp;gs_handle, accel_offset);</div>
<div class="line"><a name="l00915"></a><span class="lineno">  915</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00916"></a><span class="lineno">  916</span>&#160;    {</div>
<div class="line"><a name="l00917"></a><span class="lineno">  917</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set accel bias failed.\n&quot;</span>);</div>
<div class="line"><a name="l00918"></a><span class="lineno">  918</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00919"></a><span class="lineno">  919</span>&#160;       </div>
<div class="line"><a name="l00920"></a><span class="lineno">  920</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00921"></a><span class="lineno">  921</span>&#160;    }</div>
<div class="line"><a name="l00922"></a><span class="lineno">  922</span>&#160;    </div>
<div class="line"><a name="l00923"></a><span class="lineno">  923</span>&#160;    <span class="comment">/* dmp set gyro bias */</span></div>
<div class="line"><a name="l00924"></a><span class="lineno">  924</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#ga15b0a03cd7c92199c0e9c8549713e3f5">mpu9250_dmp_set_gyro_bias</a>(&amp;gs_handle, gyro_offset);</div>
<div class="line"><a name="l00925"></a><span class="lineno">  925</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00926"></a><span class="lineno">  926</span>&#160;    {</div>
<div class="line"><a name="l00927"></a><span class="lineno">  927</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set gyro bias failed.\n&quot;</span>);</div>
<div class="line"><a name="l00928"></a><span class="lineno">  928</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00929"></a><span class="lineno">  929</span>&#160;       </div>
<div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;    }</div>
<div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160;    </div>
<div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160;    <span class="comment">/* enable the dmp */</span></div>
<div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160;    res = <a class="code" href="group__mpu9250__dmp__driver.html#ga5be14cbee204a15d46a00c99defb1a2b">mpu9250_dmp_set_enable</a>(&amp;gs_handle, <a class="code" href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a3a5a8f91560f481e8745533d2e2d3e75">MPU9250_BOOL_TRUE</a>);</div>
<div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160;    {</div>
<div class="line"><a name="l00937"></a><span class="lineno">  937</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: dmp set enable failed.\n&quot;</span>);</div>
<div class="line"><a name="l00938"></a><span class="lineno">  938</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00939"></a><span class="lineno">  939</span>&#160;       </div>
<div class="line"><a name="l00940"></a><span class="lineno">  940</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00941"></a><span class="lineno">  941</span>&#160;    }</div>
<div class="line"><a name="l00942"></a><span class="lineno">  942</span>&#160;    </div>
<div class="line"><a name="l00943"></a><span class="lineno">  943</span>&#160;    <span class="comment">/* force fifo reset */</span></div>
<div class="line"><a name="l00944"></a><span class="lineno">  944</span>&#160;    res = <a class="code" href="group__mpu9250__basic__driver.html#gafd62e34956311f516d188c10c24d7ee9">mpu9250_force_fifo_reset</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00945"></a><span class="lineno">  945</span>&#160;    <span class="keywordflow">if</span> (res != 0)</div>
<div class="line"><a name="l00946"></a><span class="lineno">  946</span>&#160;    {</div>
<div class="line"><a name="l00947"></a><span class="lineno">  947</span>&#160;        <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: force fifo reset failed.\n&quot;</span>);</div>
<div class="line"><a name="l00948"></a><span class="lineno">  948</span>&#160;        (void)<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle);</div>
<div class="line"><a name="l00949"></a><span class="lineno">  949</span>&#160;       </div>
<div class="line"><a name="l00950"></a><span class="lineno">  950</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00951"></a><span class="lineno">  951</span>&#160;    }</div>
<div class="line"><a name="l00952"></a><span class="lineno">  952</span>&#160;    </div>
<div class="line"><a name="l00953"></a><span class="lineno">  953</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00954"></a><span class="lineno">  954</span>&#160;}</div>
<div class="line"><a name="l00955"></a><span class="lineno">  955</span>&#160; </div>
<div class="line"><a name="l00964"></a><span class="lineno"><a class="line" href="group__mpu9250__example__driver.html#ga7c3c3fe0f188fbd118415cac774da322">  964</a></span>&#160;uint8_t <a class="code" href="group__mpu9250__example__driver.html#ga7c3c3fe0f188fbd118415cac774da322">mpu9250_dmp_get_pedometer_counter</a>(uint32_t *cnt)</div>
<div class="line"><a name="l00965"></a><span class="lineno">  965</span>&#160;{</div>
<div class="line"><a name="l00966"></a><span class="lineno">  966</span>&#160;    <span class="comment">/* get the pedometer counter */</span></div>
<div class="line"><a name="l00967"></a><span class="lineno">  967</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="group__mpu9250__dmp__driver.html#ga8a9cee556536192337fb24da55af1697">mpu9250_dmp_get_pedometer_step_count</a>(&amp;gs_handle, cnt) != 0)</div>
<div class="line"><a name="l00968"></a><span class="lineno">  968</span>&#160;    {</div>
<div class="line"><a name="l00969"></a><span class="lineno">  969</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00970"></a><span class="lineno">  970</span>&#160;    }</div>
<div class="line"><a name="l00971"></a><span class="lineno">  971</span>&#160;    </div>
<div class="line"><a name="l00972"></a><span class="lineno">  972</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00973"></a><span class="lineno">  973</span>&#160;}</div>
<div class="line"><a name="l00974"></a><span class="lineno">  974</span>&#160; </div>
<div class="line"><a name="l00991"></a><span class="lineno"><a class="line" href="group__mpu9250__example__driver.html#gaaf40501da341c82d50a2d1c06810cf2b">  991</a></span>&#160;uint8_t <a class="code" href="group__mpu9250__example__driver.html#gaaf40501da341c82d50a2d1c06810cf2b">mpu9250_dmp_read_all</a>(int16_t (*accel_raw)[3], <span class="keywordtype">float</span> (*accel_g)[3],</div>
<div class="line"><a name="l00992"></a><span class="lineno">  992</span>&#160;                             int16_t (*gyro_raw)[3], <span class="keywordtype">float</span> (*gyro_dps)[3],</div>
<div class="line"><a name="l00993"></a><span class="lineno">  993</span>&#160;                             int32_t (*quat)[4],</div>
<div class="line"><a name="l00994"></a><span class="lineno">  994</span>&#160;                             <span class="keywordtype">float</span> *pitch, <span class="keywordtype">float</span> *roll, <span class="keywordtype">float</span> *yaw,</div>
<div class="line"><a name="l00995"></a><span class="lineno">  995</span>&#160;                             uint16_t *l</div>
<div class="line"><a name="l00996"></a><span class="lineno">  996</span>&#160;                            )</div>
<div class="line"><a name="l00997"></a><span class="lineno">  997</span>&#160;{</div>
<div class="line"><a name="l00998"></a><span class="lineno">  998</span>&#160;    <span class="comment">/* dmp read */</span></div>
<div class="line"><a name="l00999"></a><span class="lineno">  999</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="group__mpu9250__dmp__driver.html#gaeaec70f79b4a48342b30cdb5f4f8e66b">mpu9250_dmp_read</a>(&amp;gs_handle, accel_raw, accel_g,</div>
<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>&#160;                         gyro_raw, gyro_dps, quat,</div>
<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>&#160;                         pitch, roll, yaw, l) != 0</div>
<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>&#160;                        )</div>
<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>&#160;    {</div>
<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>&#160;    }</div>
<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>&#160;    </div>
<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>&#160;}</div>
<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>&#160; </div>
<div class="line"><a name="l01017"></a><span class="lineno"><a class="line" href="group__mpu9250__example__driver.html#ga0cd1f6cf82d93735044b40d43a714a06"> 1017</a></span>&#160;uint8_t <a class="code" href="group__mpu9250__example__driver.html#ga0cd1f6cf82d93735044b40d43a714a06">mpu9250_dmp_deinit</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>&#160;{</div>
<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>&#160;    <span class="comment">/* deinit */</span></div>
<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a>(&amp;gs_handle) != 0)</div>
<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>&#160;    {</div>
<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>&#160;    }</div>
<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>&#160;    </div>
<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>&#160;}</div>
<div class="ttc" id="adriver__mpu9250__dmp_8h_html"><div class="ttname"><a href="driver__mpu9250__dmp_8h.html">driver_mpu9250_dmp.h</a></div><div class="ttdoc">driver mpu9250 dmp header file</div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga070e0be03ff82b63a621b28d7cfb9ef6"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga070e0be03ff82b63a621b28d7cfb9ef6">mpu9250_set_accelerometer_low_pass_filter</a></div><div class="ttdeci">uint8_t mpu9250_set_accelerometer_low_pass_filter(mpu9250_handle_t *handle, mpu9250_accelerometer_low_pass_filter_t filter)</div><div class="ttdoc">set the accelerometer low pass filter</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l07886">driver_mpu9250.c:7886</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga0d186c577cd772ff1d1aba5ad9afc514"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga0d186c577cd772ff1d1aba5ad9afc514">mpu9250_set_wake_on_motion</a></div><div class="ttdeci">uint8_t mpu9250_set_wake_on_motion(mpu9250_handle_t *handle, mpu9250_bool_t enable)</div><div class="ttdoc">enable or disable wake on motion</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l08050">driver_mpu9250.c:8050</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga10b8978ff7747aad1603f0a436e38697"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga10b8978ff7747aad1603f0a436e38697">mpu9250_set_accel_compare_with_previous_sample</a></div><div class="ttdeci">uint8_t mpu9250_set_accel_compare_with_previous_sample(mpu9250_handle_t *handle, mpu9250_bool_t enable)</div><div class="ttdoc">enable or disable accel compare with previous sample</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l08132">driver_mpu9250.c:8132</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga118157bbb7d19b2873fc8aa208f72433"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga118157bbb7d19b2873fc8aa208f72433">mpu9250_set_fifo_mode</a></div><div class="ttdeci">uint8_t mpu9250_set_fifo_mode(mpu9250_handle_t *handle, mpu9250_fifo_mode mode)</div><div class="ttdoc">set the fifo mode</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l07249">driver_mpu9250.c:7249</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga131010e3c74265bbf552ac89cbd3e777"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga131010e3c74265bbf552ac89cbd3e777">mpu9250_self_test</a></div><div class="ttdeci">uint8_t mpu9250_self_test(mpu9250_handle_t *handle, int32_t gyro_offset_raw[3], int32_t accel_offset_raw[3])</div><div class="ttdoc">run the self test</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l10094">driver_mpu9250.c:10094</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga14d223233cac73c46302833bfc4b0fe3"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga14d223233cac73c46302833bfc4b0fe3">mpu9250_set_addr_pin</a></div><div class="ttdeci">uint8_t mpu9250_set_addr_pin(mpu9250_handle_t *handle, mpu9250_address_t addr_pin)</div><div class="ttdoc">set the chip address pin</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l03964">driver_mpu9250.c:3964</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga18940c2dfb124723d7485d2323a80341"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga18940c2dfb124723d7485d2323a80341">mpu9250_set_ptat</a></div><div class="ttdeci">uint8_t mpu9250_set_ptat(mpu9250_handle_t *handle, mpu9250_bool_t enable)</div><div class="ttdoc">enable or disable the temperature sensor</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l06449">driver_mpu9250.c:6449</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga1c42ba5fb3c135f61d7f783274595212"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga1c42ba5fb3c135f61d7f783274595212">mpu9250_set_fifo_enable</a></div><div class="ttdeci">uint8_t mpu9250_set_fifo_enable(mpu9250_handle_t *handle, mpu9250_fifo_t fifo, mpu9250_bool_t enable)</div><div class="ttdoc">enable or disable the fifo function</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l08215">driver_mpu9250.c:8215</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga1e53851ce6213550ff456e7099ddff89"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga1e53851ce6213550ff456e7099ddff89">mpu9250_set_standby_mode</a></div><div class="ttdeci">uint8_t mpu9250_set_standby_mode(mpu9250_handle_t *handle, mpu9250_source_t source, mpu9250_bool_t enable)</div><div class="ttdoc">set source into standby mode</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l06778">driver_mpu9250.c:6778</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga26f412894624bb62d43eb0b4e0787cf1"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga26f412894624bb62d43eb0b4e0787cf1">mpu9250_set_cycle_wake_up</a></div><div class="ttdeci">uint8_t mpu9250_set_cycle_wake_up(mpu9250_handle_t *handle, mpu9250_bool_t enable)</div><div class="ttdoc">enable or disable the cycle wake up mode</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l06531">driver_mpu9250.c:6531</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga2b38791132acc7a8790b0065114f244c"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga2b38791132acc7a8790b0065114f244c">mpu9250_set_interrupt_latch</a></div><div class="ttdeci">uint8_t mpu9250_set_interrupt_latch(mpu9250_handle_t *handle, mpu9250_bool_t enable)</div><div class="ttdoc">enable or disable the interrupt latch</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l08462">driver_mpu9250.c:8462</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga39452e3f106a9e536563684cde3a9653"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga39452e3f106a9e536563684cde3a9653">mpu9250_set_extern_sync</a></div><div class="ttdeci">uint8_t mpu9250_set_extern_sync(mpu9250_handle_t *handle, mpu9250_extern_sync_t sync)</div><div class="ttdoc">set the extern sync type</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l07085">driver_mpu9250.c:7085</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga3d45ac5d4a5a3bbe21d3ad2644ab02ce"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga3d45ac5d4a5a3bbe21d3ad2644ab02ce">mpu9250_set_gyro_standby</a></div><div class="ttdeci">uint8_t mpu9250_set_gyro_standby(mpu9250_handle_t *handle, mpu9250_bool_t enable)</div><div class="ttdoc">enable or disable the gyro standby</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l06695">driver_mpu9250.c:6695</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga51224d8bd81cd18f40f52a6b0d44bc85"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga51224d8bd81cd18f40f52a6b0d44bc85">mpu9250_address_t</a></div><div class="ttdeci">mpu9250_address_t</div><div class="ttdoc">mpu9250 address enumeration definition</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00071">driver_mpu9250.h:72</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga54c787d00afa16de37b15bf7c4add339"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga54c787d00afa16de37b15bf7c4add339">mpu9250_set_fsync_interrupt</a></div><div class="ttdeci">uint8_t mpu9250_set_fsync_interrupt(mpu9250_handle_t *handle, mpu9250_bool_t enable)</div><div class="ttdoc">enable or disable the fsync interrupt</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l08708">driver_mpu9250.c:8708</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga5b348d7e792fa1dd2ce9af2bc377c8d6"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga5b348d7e792fa1dd2ce9af2bc377c8d6">mpu9250_set_iic_bypass</a></div><div class="ttdeci">uint8_t mpu9250_set_iic_bypass(mpu9250_handle_t *handle, mpu9250_bool_t enable)</div><div class="ttdoc">enable or disable the iic bypass</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l08790">driver_mpu9250.c:8790</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga64d91338d58bcdedeea01ae4d5007649"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga64d91338d58bcdedeea01ae4d5007649">mpu9250_set_accelerometer_test</a></div><div class="ttdeci">uint8_t mpu9250_set_accelerometer_test(mpu9250_handle_t *handle, mpu9250_axis_t axis, mpu9250_bool_t enable)</div><div class="ttdoc">set the accelerometer test</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l07587">driver_mpu9250.c:7587</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga65085341214ac1bf8b424278319249c3"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga65085341214ac1bf8b424278319249c3">mpu9250_set_interrupt_level</a></div><div class="ttdeci">uint8_t mpu9250_set_interrupt_level(mpu9250_handle_t *handle, mpu9250_pin_level_t level)</div><div class="ttdoc">set the interrupt level</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l08298">driver_mpu9250.c:8298</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga6adae77c7184ffeeab4ad26ad635742e"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga6adae77c7184ffeeab4ad26ad635742e">mpu9250_set_interrupt_read_clear</a></div><div class="ttdeci">uint8_t mpu9250_set_interrupt_read_clear(mpu9250_handle_t *handle, mpu9250_bool_t enable)</div><div class="ttdoc">enable or disable the interrupt reading clear</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l08544">driver_mpu9250.c:8544</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga6d1b57cd5f937f8c9538694554219f09"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga6d1b57cd5f937f8c9538694554219f09">mpu9250_set_interface</a></div><div class="ttdeci">uint8_t mpu9250_set_interface(mpu9250_handle_t *handle, mpu9250_interface_t interface)</div><div class="ttdoc">set the chip interface</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l03922">driver_mpu9250.c:3922</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga70f0287789306f5eb8218c8d8d2f310f"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga70f0287789306f5eb8218c8d8d2f310f">mpu9250_irq_handler</a></div><div class="ttdeci">uint8_t mpu9250_irq_handler(mpu9250_handle_t *handle)</div><div class="ttdoc">irq handler</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l04668">driver_mpu9250.c:4668</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga7d9cf66109326149ba40c8bee86e12c6"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga7d9cf66109326149ba40c8bee86e12c6">mpu9250_interface_t</a></div><div class="ttdeci">mpu9250_interface_t</div><div class="ttdoc">mpu9250 interface enumeration definition</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00062">driver_mpu9250.h:63</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga88c8110fc3cc1f5fe2e58d603e834e84"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga88c8110fc3cc1f5fe2e58d603e834e84">mpu9250_set_interrupt</a></div><div class="ttdeci">uint8_t mpu9250_set_interrupt(mpu9250_handle_t *handle, mpu9250_interrupt_t type, mpu9250_bool_t enable)</div><div class="ttdoc">enable or disable the interrupt</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l08873">driver_mpu9250.c:8873</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga89eff30acbfe4db064773b26ccc4dd23"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga89eff30acbfe4db064773b26ccc4dd23">mpu9250_set_motion_threshold</a></div><div class="ttdeci">uint8_t mpu9250_set_motion_threshold(mpu9250_handle_t *handle, uint8_t threshold)</div><div class="ttdoc">set the motion_threshold</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l09969">driver_mpu9250.c:9969</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga8a369f25689d107c3307e2f197c4aa84"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga8a369f25689d107c3307e2f197c4aa84">mpu9250_set_fsync_interrupt_level</a></div><div class="ttdeci">uint8_t mpu9250_set_fsync_interrupt_level(mpu9250_handle_t *handle, mpu9250_pin_level_t level)</div><div class="ttdoc">set the fsync interrupt level</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l08626">driver_mpu9250.c:8626</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga8eb45281513e749459d44bf0be2da7f4"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga8eb45281513e749459d44bf0be2da7f4">mpu9250_set_gyroscope_choice</a></div><div class="ttdeci">uint8_t mpu9250_set_gyroscope_choice(mpu9250_handle_t *handle, uint8_t choice)</div><div class="ttdoc">set the gyroscope choice</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l07498">driver_mpu9250.c:7498</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga91cfe80c70e7e102d6e5a1def3a2ee6e"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga91cfe80c70e7e102d6e5a1def3a2ee6e">mpu9250_deinit</a></div><div class="ttdeci">uint8_t mpu9250_deinit(mpu9250_handle_t *handle)</div><div class="ttdoc">close the chip</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l04168">driver_mpu9250.c:4168</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga97d5c00f1de8cfdc1a13abf5c502fd36"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga97d5c00f1de8cfdc1a13abf5c502fd36">mpu9250_set_fifo_1024kb</a></div><div class="ttdeci">uint8_t mpu9250_set_fifo_1024kb(mpu9250_handle_t *handle)</div><div class="ttdoc">set fifo 1024kb</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l07751">driver_mpu9250.c:7751</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga9ab3e582e544dc7473be5eb3be98785d"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga9ab3e582e544dc7473be5eb3be98785d">mpu9250_motion_threshold_convert_to_register</a></div><div class="ttdeci">uint8_t mpu9250_motion_threshold_convert_to_register(mpu9250_handle_t *handle, float mg, uint8_t *reg)</div><div class="ttdoc">convert the motion threshold to the register raw data</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l10039">driver_mpu9250.c:10039</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga9b899b894453de709ee47aefb730660d"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga9b899b894453de709ee47aefb730660d">mpu9250_set_low_pass_filter</a></div><div class="ttdeci">uint8_t mpu9250_set_low_pass_filter(mpu9250_handle_t *handle, mpu9250_low_pass_filter_t filter)</div><div class="ttdoc">set the low pass filter</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l07167">driver_mpu9250.c:7167</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga9c164e91b829975d85a9e7a8f7eabbed"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga9c164e91b829975d85a9e7a8f7eabbed">mpu9250_set_gyroscope_test</a></div><div class="ttdeci">uint8_t mpu9250_set_gyroscope_test(mpu9250_handle_t *handle, mpu9250_axis_t axis, mpu9250_bool_t enable)</div><div class="ttdoc">set the gyroscope test</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l07332">driver_mpu9250.c:7332</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga9ccef86bf71b10f925f1a43b8891f724"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga9ccef86bf71b10f925f1a43b8891f724">mpu9250_set_clock_source</a></div><div class="ttdeci">uint8_t mpu9250_set_clock_source(mpu9250_handle_t *handle, mpu9250_clock_source_t clock_source)</div><div class="ttdoc">set the chip clock source</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l06367">driver_mpu9250.c:6367</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ga9f63addba99f20e170f3a8a0cc76d453"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ga9f63addba99f20e170f3a8a0cc76d453">mpu9250_set_low_power_accel_output_rate</a></div><div class="ttdeci">uint8_t mpu9250_set_low_power_accel_output_rate(mpu9250_handle_t *handle, mpu9250_low_power_accel_output_rate_t rate)</div><div class="ttdoc">set the low power accel output rate</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l07968">driver_mpu9250.c:7968</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gaabee5fccd2e52a10c529a09c28ef3630"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gaabee5fccd2e52a10c529a09c28ef3630">mpu9250_set_disable_iic_slave</a></div><div class="ttdeci">uint8_t mpu9250_set_disable_iic_slave(mpu9250_handle_t *handle, mpu9250_bool_t enable)</div><div class="ttdoc">enable or disable the iic slave mode</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l05961">driver_mpu9250.c:5961</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gab8ef8d4cc839a2fbcb55e65330b1ba0b"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gab8ef8d4cc839a2fbcb55e65330b1ba0b">mpu9250_set_sample_rate_divider</a></div><div class="ttdeci">uint8_t mpu9250_set_sample_rate_divider(mpu9250_handle_t *handle, uint8_t d)</div><div class="ttdoc">set the sample rate divider</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l07015">driver_mpu9250.c:7015</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gac255f046ade796f75489d130e9270690"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gac255f046ade796f75489d130e9270690">mpu9250_set_fifo</a></div><div class="ttdeci">uint8_t mpu9250_set_fifo(mpu9250_handle_t *handle, mpu9250_bool_t enable)</div><div class="ttdoc">enable or disable fifo</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l05763">driver_mpu9250.c:5763</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gac5b9ba3d521630513c0e4f80fead11b2"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gac5b9ba3d521630513c0e4f80fead11b2">mpu9250_init</a></div><div class="ttdeci">uint8_t mpu9250_init(mpu9250_handle_t *handle)</div><div class="ttdoc">initialize the chip</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l04009">driver_mpu9250.c:4009</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gac9772ee923bba8f8adc80ef85362223b"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gac9772ee923bba8f8adc80ef85362223b">mpu9250_set_accelerometer_choice</a></div><div class="ttdeci">uint8_t mpu9250_set_accelerometer_choice(mpu9250_handle_t *handle, uint8_t choice)</div><div class="ttdoc">set the accelerometer choice</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l07797">driver_mpu9250.c:7797</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gacd41a8826a124f4a1bddfe6c346a85cd"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gacd41a8826a124f4a1bddfe6c346a85cd">mpu9250_set_gyroscope_range</a></div><div class="ttdeci">uint8_t mpu9250_set_gyroscope_range(mpu9250_handle_t *handle, mpu9250_gyroscope_range_t range)</div><div class="ttdoc">set the gyroscope range</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l07415">driver_mpu9250.c:7415</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gad41a29c64249b8ad014418deacffad92"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gad41a29c64249b8ad014418deacffad92">mpu9250_set_interrupt_pin_type</a></div><div class="ttdeci">uint8_t mpu9250_set_interrupt_pin_type(mpu9250_handle_t *handle, mpu9250_pin_type_t type)</div><div class="ttdoc">set the interrupt pin type</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l08380">driver_mpu9250.c:8380</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gaddc9799db34bfb9ee0a8a12c05f4bae9"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gaddc9799db34bfb9ee0a8a12c05f4bae9">mpu9250_set_iic_master</a></div><div class="ttdeci">uint8_t mpu9250_set_iic_master(mpu9250_handle_t *handle, mpu9250_bool_t enable)</div><div class="ttdoc">enable or disable the iic master mode</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l05879">driver_mpu9250.c:5879</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gadf326e1597e13e17ac02289be4772797"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gadf326e1597e13e17ac02289be4772797">mpu9250_set_accelerometer_range</a></div><div class="ttdeci">uint8_t mpu9250_set_accelerometer_range(mpu9250_handle_t *handle, mpu9250_accelerometer_range_t range)</div><div class="ttdoc">set the accelerometer range</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l07670">driver_mpu9250.c:7670</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gaecb6481f459eb1cb5ad15a7e32d6a1c2"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gaecb6481f459eb1cb5ad15a7e32d6a1c2">mpu9250_set_sleep</a></div><div class="ttdeci">uint8_t mpu9250_set_sleep(mpu9250_handle_t *handle, mpu9250_bool_t enable)</div><div class="ttdoc">enable or disable the sleep mode</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l06613">driver_mpu9250.c:6613</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gafd62e34956311f516d188c10c24d7ee9"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gafd62e34956311f516d188c10c24d7ee9">mpu9250_force_fifo_reset</a></div><div class="ttdeci">uint8_t mpu9250_force_fifo_reset(mpu9250_handle_t *handle)</div><div class="ttdoc">force reset the fifo</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l05844">driver_mpu9250.c:5844</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gga759b7cd8b95661bfc10bb71f5ebb10e2a5030e2c21c74ff66479b79b79d6450e5"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gga759b7cd8b95661bfc10bb71f5ebb10e2a5030e2c21c74ff66479b79b79d6450e5">MPU9250_INTERRUPT_MOTION</a></div><div class="ttdeci">@ MPU9250_INTERRUPT_MOTION</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00263">driver_mpu9250.h:263</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gga759b7cd8b95661bfc10bb71f5ebb10e2a56a52905e782fac90618ac0bd137de8c"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gga759b7cd8b95661bfc10bb71f5ebb10e2a56a52905e782fac90618ac0bd137de8c">MPU9250_INTERRUPT_DATA_READY</a></div><div class="ttdeci">@ MPU9250_INTERRUPT_DATA_READY</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00267">driver_mpu9250.h:267</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gga759b7cd8b95661bfc10bb71f5ebb10e2aa3fc19b2cca3bc1751ee797df869963c"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gga759b7cd8b95661bfc10bb71f5ebb10e2aa3fc19b2cca3bc1751ee797df869963c">MPU9250_INTERRUPT_FSYNC_INT</a></div><div class="ttdeci">@ MPU9250_INTERRUPT_FSYNC_INT</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00265">driver_mpu9250.h:265</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gga759b7cd8b95661bfc10bb71f5ebb10e2ad245c997e25ffa5c010b1206f0a183ce"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gga759b7cd8b95661bfc10bb71f5ebb10e2ad245c997e25ffa5c010b1206f0a183ce">MPU9250_INTERRUPT_DMP</a></div><div class="ttdeci">@ MPU9250_INTERRUPT_DMP</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00266">driver_mpu9250.h:266</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gga759b7cd8b95661bfc10bb71f5ebb10e2ae7185bca3ffebaa61271eb46d41615c9"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gga759b7cd8b95661bfc10bb71f5ebb10e2ae7185bca3ffebaa61271eb46d41615c9">MPU9250_INTERRUPT_FIFO_OVERFLOW</a></div><div class="ttdeci">@ MPU9250_INTERRUPT_FIFO_OVERFLOW</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00264">driver_mpu9250.h:264</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gga7b211bf948250fd521f5bac73a542636a3573959e91e21dba82de8249f4e7b523"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gga7b211bf948250fd521f5bac73a542636a3573959e91e21dba82de8249f4e7b523">MPU9250_SOURCE_GYRO_X</a></div><div class="ttdeci">@ MPU9250_SOURCE_GYRO_X</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00094">driver_mpu9250.h:94</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gga7b211bf948250fd521f5bac73a542636a71c849f57b5e779d0ee6be8a3a12db9d"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gga7b211bf948250fd521f5bac73a542636a71c849f57b5e779d0ee6be8a3a12db9d">MPU9250_SOURCE_ACC_Z</a></div><div class="ttdeci">@ MPU9250_SOURCE_ACC_Z</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00093">driver_mpu9250.h:93</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gga7b211bf948250fd521f5bac73a542636abe9b9f9313d0c2d6da6f0280e42f83bd"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gga7b211bf948250fd521f5bac73a542636abe9b9f9313d0c2d6da6f0280e42f83bd">MPU9250_SOURCE_GYRO_Y</a></div><div class="ttdeci">@ MPU9250_SOURCE_GYRO_Y</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00095">driver_mpu9250.h:95</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gga7b211bf948250fd521f5bac73a542636adbf686e57542b017ae156ea7263b6003"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gga7b211bf948250fd521f5bac73a542636adbf686e57542b017ae156ea7263b6003">MPU9250_SOURCE_GYRO_Z</a></div><div class="ttdeci">@ MPU9250_SOURCE_GYRO_Z</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00096">driver_mpu9250.h:96</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gga7b211bf948250fd521f5bac73a542636ae477a2db070db29a1d42c3642e0a852c"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gga7b211bf948250fd521f5bac73a542636ae477a2db070db29a1d42c3642e0a852c">MPU9250_SOURCE_ACC_X</a></div><div class="ttdeci">@ MPU9250_SOURCE_ACC_X</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00091">driver_mpu9250.h:91</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gga7b211bf948250fd521f5bac73a542636af07fd4400b5c31be0662c3832169a6a2"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gga7b211bf948250fd521f5bac73a542636af07fd4400b5c31be0662c3832169a6a2">MPU9250_SOURCE_ACC_Y</a></div><div class="ttdeci">@ MPU9250_SOURCE_ACC_Y</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00092">driver_mpu9250.h:92</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gga7d9cf66109326149ba40c8bee86e12c6a4caf275cf35615c231ec06f9bafd87af"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gga7d9cf66109326149ba40c8bee86e12c6a4caf275cf35615c231ec06f9bafd87af">MPU9250_INTERFACE_SPI</a></div><div class="ttdeci">@ MPU9250_INTERFACE_SPI</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00065">driver_mpu9250.h:65</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gga80d5162f5e92390d0310dbfd8c2b1fd4a3a5a8f91560f481e8745533d2e2d3e75"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a3a5a8f91560f481e8745533d2e2d3e75">MPU9250_BOOL_TRUE</a></div><div class="ttdeci">@ MPU9250_BOOL_TRUE</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00083">driver_mpu9250.h:83</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe"><div class="ttname"><a href="group__mpu9250__basic__driver.html#gga80d5162f5e92390d0310dbfd8c2b1fd4a5c8dc81007c65a35aea1f74b3367fabe">MPU9250_BOOL_FALSE</a></div><div class="ttdeci">@ MPU9250_BOOL_FALSE</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00082">driver_mpu9250.h:82</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ggae57dfba234eed087f521fa33f265e696a4b888eb6e9680c184453c3a082cd3b71"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ggae57dfba234eed087f521fa33f265e696a4b888eb6e9680c184453c3a082cd3b71">MPU9250_AXIS_X</a></div><div class="ttdeci">@ MPU9250_AXIS_X</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00193">driver_mpu9250.h:193</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ggae57dfba234eed087f521fa33f265e696ad38dea27580098dac50c53f1ffe560c9"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ggae57dfba234eed087f521fa33f265e696ad38dea27580098dac50c53f1ffe560c9">MPU9250_AXIS_Z</a></div><div class="ttdeci">@ MPU9250_AXIS_Z</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00191">driver_mpu9250.h:191</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ggae57dfba234eed087f521fa33f265e696afb7425b9e1f9baf5439c3ac46f262886"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ggae57dfba234eed087f521fa33f265e696afb7425b9e1f9baf5439c3ac46f262886">MPU9250_AXIS_Y</a></div><div class="ttdeci">@ MPU9250_AXIS_Y</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00192">driver_mpu9250.h:192</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ggaf85a7c775594df03179f101c03939a20a12fbd194426a5a760ecd347da555ea84"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ggaf85a7c775594df03179f101c03939a20a12fbd194426a5a760ecd347da555ea84">MPU9250_FIFO_XG</a></div><div class="ttdeci">@ MPU9250_FIFO_XG</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00224">driver_mpu9250.h:224</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ggaf85a7c775594df03179f101c03939a20a140f228c52080b9392c612a4300652c3"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ggaf85a7c775594df03179f101c03939a20a140f228c52080b9392c612a4300652c3">MPU9250_FIFO_YG</a></div><div class="ttdeci">@ MPU9250_FIFO_YG</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00225">driver_mpu9250.h:225</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ggaf85a7c775594df03179f101c03939a20a8f48af59a15ec65a25a73699e45756d5"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ggaf85a7c775594df03179f101c03939a20a8f48af59a15ec65a25a73699e45756d5">MPU9250_FIFO_ZG</a></div><div class="ttdeci">@ MPU9250_FIFO_ZG</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00226">driver_mpu9250.h:226</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ggaf85a7c775594df03179f101c03939a20a963aef966265b0b81855f8e1f3452bd9"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ggaf85a7c775594df03179f101c03939a20a963aef966265b0b81855f8e1f3452bd9">MPU9250_FIFO_ACCEL</a></div><div class="ttdeci">@ MPU9250_FIFO_ACCEL</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00227">driver_mpu9250.h:227</a></div></div>
<div class="ttc" id="agroup__mpu9250__basic__driver_html_ggaf85a7c775594df03179f101c03939a20acddeff60c59661a88aad42096e4ce0fe"><div class="ttname"><a href="group__mpu9250__basic__driver.html#ggaf85a7c775594df03179f101c03939a20acddeff60c59661a88aad42096e4ce0fe">MPU9250_FIFO_TEMP</a></div><div class="ttdeci">@ MPU9250_FIFO_TEMP</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00223">driver_mpu9250.h:223</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_ga0d1dd18beda7cfda85110182e5b9574b"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#ga0d1dd18beda7cfda85110182e5b9574b">mpu9250_dmp_set_accel_bias</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_accel_bias(mpu9250_handle_t *handle, int32_t bias[3])</div><div class="ttdoc">dmp set the accel bias</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l02289">driver_mpu9250.c:2289</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_ga0e52f54a78c294d505548f7b83584692"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#ga0e52f54a78c294d505548f7b83584692">mpu9250_dmp_set_tap_callback</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_tap_callback(mpu9250_handle_t *handle, void(*callback)(uint8_t count, uint8_t direction))</div><div class="ttdoc">dmp set the tap callback</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l03699">driver_mpu9250.c:3699</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_ga15b0a03cd7c92199c0e9c8549713e3f5"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#ga15b0a03cd7c92199c0e9c8549713e3f5">mpu9250_dmp_set_gyro_bias</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_gyro_bias(mpu9250_handle_t *handle, int32_t bias[3])</div><div class="ttdoc">dmp set the gyro bias</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l02199">driver_mpu9250.c:2199</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_ga180005e5ba56486ac84dfd9f2a8d82ea"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#ga180005e5ba56486ac84dfd9f2a8d82ea">mpu9250_dmp_set_shake_reject_timeout</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_shake_reject_timeout(mpu9250_handle_t *handle, uint16_t ms)</div><div class="ttdoc">dmp set the shake reject timeout</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l01352">driver_mpu9250.c:1352</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_ga2d0e9bf93b2ddd8ca9de4b0ee8a83eea"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#ga2d0e9bf93b2ddd8ca9de4b0ee8a83eea">mpu9250_dmp_set_orientation</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_orientation(mpu9250_handle_t *handle, int8_t mat[9])</div><div class="ttdoc">dmp set the orientation</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l02392">driver_mpu9250.c:2392</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_ga367d8b21fdb2c27ed41d617e2c77a29f"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#ga367d8b21fdb2c27ed41d617e2c77a29f">mpu9250_dmp_set_fifo_rate</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_fifo_rate(mpu9250_handle_t *handle, uint16_t rate)</div><div class="ttdoc">dmp set the fifo rate</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l02938">driver_mpu9250.c:2938</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_ga3f8bf147a88064e43176cf692a77822a"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#ga3f8bf147a88064e43176cf692a77822a">mpu9250_dmp_load_firmware</a></div><div class="ttdeci">uint8_t mpu9250_dmp_load_firmware(mpu9250_handle_t *handle)</div><div class="ttdoc">load the dmp firmware</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l01087">driver_mpu9250.c:1087</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_ga49211f23e5026fb2d129d713d87aad97"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#ga49211f23e5026fb2d129d713d87aad97">mpu9250_dmp_set_tap_axes</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_tap_axes(mpu9250_handle_t *handle, mpu9250_axis_t axis, mpu9250_bool_t enable)</div><div class="ttdoc">dmp enable or disable the tap axes</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l03051">driver_mpu9250.c:3051</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_ga5be14cbee204a15d46a00c99defb1a2b"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#ga5be14cbee204a15d46a00c99defb1a2b">mpu9250_dmp_set_enable</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_enable(mpu9250_handle_t *handle, mpu9250_bool_t enable)</div><div class="ttdoc">enable or disable the dmp</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l03767">driver_mpu9250.c:3767</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_ga5ede8c500e8bf155b61b6f54b039b042"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#ga5ede8c500e8bf155b61b6f54b039b042">mpu9250_dmp_set_feature</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_feature(mpu9250_handle_t *handle, uint16_t mask)</div><div class="ttdoc">dmp enable or disable the dmp feature</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l02496">driver_mpu9250.c:2496</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_ga615a1c1bd026e8532a4f2e86c1e2a275"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#ga615a1c1bd026e8532a4f2e86c1e2a275">mpu9250_dmp_set_shake_reject_thresh</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_shake_reject_thresh(mpu9250_handle_t *handle, uint16_t dps)</div><div class="ttdoc">dmp set the shake reject thresh</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l01536">driver_mpu9250.c:1536</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_ga7059b4ef0ccf3a16ce49c753bf07f9b2"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#ga7059b4ef0ccf3a16ce49c753bf07f9b2">mpu9250_dmp_set_orient_callback</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_orient_callback(mpu9250_handle_t *handle, void(*callback)(uint8_t orientation))</div><div class="ttdoc">dmp set the orient callback</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l03733">driver_mpu9250.c:3733</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_ga7175c011118e878111a01d534e65e0b2"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#ga7175c011118e878111a01d534e65e0b2">mpu9250_dmp_set_interrupt_mode</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_interrupt_mode(mpu9250_handle_t *handle, mpu9250_dmp_interrupt_mode_t mode)</div><div class="ttdoc">dmp set the interrupt mode</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l02130">driver_mpu9250.c:2130</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_ga8a9cee556536192337fb24da55af1697"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#ga8a9cee556536192337fb24da55af1697">mpu9250_dmp_get_pedometer_step_count</a></div><div class="ttdeci">uint8_t mpu9250_dmp_get_pedometer_step_count(mpu9250_handle_t *handle, uint32_t *count)</div><div class="ttdoc">dmp get the pedometer step count</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l01307">driver_mpu9250.c:1307</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_ga8d5e2c05ec490da12b381d85c22b03dd"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#ga8d5e2c05ec490da12b381d85c22b03dd">mpu9250_dmp_set_pedometer_step_count</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_pedometer_step_count(mpu9250_handle_t *handle, uint32_t count)</div><div class="ttdoc">dmp set the pedometer step count</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l01259">driver_mpu9250.c:1259</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_gaa86b7b19c12ab62b80da781a45d78d91"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#gaa86b7b19c12ab62b80da781a45d78d91">mpu9250_dmp_set_shake_reject_time</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_shake_reject_time(mpu9250_handle_t *handle, uint16_t ms)</div><div class="ttdoc">dmp set the shake reject time</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l01444">driver_mpu9250.c:1444</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_gad18711ef125f9ef79046bf67238f9a97"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#gad18711ef125f9ef79046bf67238f9a97">mpu9250_dmp_gyro_accel_raw_offset_convert</a></div><div class="ttdeci">uint8_t mpu9250_dmp_gyro_accel_raw_offset_convert(mpu9250_handle_t *handle, int32_t gyro_offset_raw[3], int32_t accel_offset_raw[3], int32_t gyro_offset[3], int32_t accel_offset[3])</div><div class="ttdoc">dmp gyro accel raw offset convert</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l03822">driver_mpu9250.c:3822</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_gad1f437e76b5826e2ae15991b15955f43"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#gad1f437e76b5826e2ae15991b15955f43">mpu9250_dmp_set_tap_time</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_tap_time(mpu9250_handle_t *handle, uint16_t ms)</div><div class="ttdoc">dmp set the tap time</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l01726">driver_mpu9250.c:1726</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_gad416d20fbcb68127ca7da73b6f79fa7f"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#gad416d20fbcb68127ca7da73b6f79fa7f">mpu9250_dmp_set_tap_thresh</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_tap_thresh(mpu9250_handle_t *handle, mpu9250_axis_t axis, uint16_t mg_ms)</div><div class="ttdoc">dmp set the tap thresh</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l03168">driver_mpu9250.c:3168</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_gadd45eb2b89daa8862d5ba2913568c77b"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#gadd45eb2b89daa8862d5ba2913568c77b">mpu9250_dmp_set_min_tap_count</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_min_tap_count(mpu9250_handle_t *handle, uint8_t cnt)</div><div class="ttdoc">dmp set the min tap count</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l01819">driver_mpu9250.c:1819</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_gae0f7c1839668402b48f2299ce26e0f10"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#gae0f7c1839668402b48f2299ce26e0f10">mpu9250_dmp_set_pedometer_walk_time</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_pedometer_walk_time(mpu9250_handle_t *handle, uint32_t ms)</div><div class="ttdoc">dmp set the pedometer walk time</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l01165">driver_mpu9250.c:1165</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_gaeaec70f79b4a48342b30cdb5f4f8e66b"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#gaeaec70f79b4a48342b30cdb5f4f8e66b">mpu9250_dmp_read</a></div><div class="ttdeci">uint8_t mpu9250_dmp_read(mpu9250_handle_t *handle, int16_t(*accel_raw)[3], float(*accel_g)[3], int16_t(*gyro_raw)[3], float(*gyro_dps)[3], int32_t(*quat)[4], float *pitch, float *roll, float *yaw, uint16_t *l)</div><div class="ttdoc">dmp read the data</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l03429">driver_mpu9250.c:3429</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_gaf37dae8db187a48d42752d0e0c203e26"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#gaf37dae8db187a48d42752d0e0c203e26">mpu9250_dmp_set_tap_time_multi</a></div><div class="ttdeci">uint8_t mpu9250_dmp_set_tap_time_multi(mpu9250_handle_t *handle, uint16_t ms)</div><div class="ttdoc">dmp set max time between taps to register as a multi tap</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8c_source.html#l01634">driver_mpu9250.c:1634</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_gga0c8f2e116fa3e90c2c7e99c98acd426ea0b1738e89b3ba129176b1008982b4820"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#gga0c8f2e116fa3e90c2c7e99c98acd426ea0b1738e89b3ba129176b1008982b4820">MPU9250_DMP_FEATURE_6X_QUAT</a></div><div class="ttdeci">@ MPU9250_DMP_FEATURE_6X_QUAT</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00458">driver_mpu9250.h:458</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_gga0c8f2e116fa3e90c2c7e99c98acd426ea3a831f327d65e46ca86dbfc86ba6a180"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#gga0c8f2e116fa3e90c2c7e99c98acd426ea3a831f327d65e46ca86dbfc86ba6a180">MPU9250_DMP_FEATURE_GYRO_CAL</a></div><div class="ttdeci">@ MPU9250_DMP_FEATURE_GYRO_CAL</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00459">driver_mpu9250.h:459</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_gga0c8f2e116fa3e90c2c7e99c98acd426ea44d75a6fe346a6406dce04c513095729"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#gga0c8f2e116fa3e90c2c7e99c98acd426ea44d75a6fe346a6406dce04c513095729">MPU9250_DMP_FEATURE_PEDOMETER</a></div><div class="ttdeci">@ MPU9250_DMP_FEATURE_PEDOMETER</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00457">driver_mpu9250.h:457</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_gga0c8f2e116fa3e90c2c7e99c98acd426ea533b43c3a724bb0f2f5d5579d9880fe0"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#gga0c8f2e116fa3e90c2c7e99c98acd426ea533b43c3a724bb0f2f5d5579d9880fe0">MPU9250_DMP_FEATURE_SEND_CAL_GYRO</a></div><div class="ttdeci">@ MPU9250_DMP_FEATURE_SEND_CAL_GYRO</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00462">driver_mpu9250.h:462</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_gga0c8f2e116fa3e90c2c7e99c98acd426ea637169e5cf43d1813309afc7ea2a83f2"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#gga0c8f2e116fa3e90c2c7e99c98acd426ea637169e5cf43d1813309afc7ea2a83f2">MPU9250_DMP_FEATURE_SEND_RAW_ACCEL</a></div><div class="ttdeci">@ MPU9250_DMP_FEATURE_SEND_RAW_ACCEL</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00460">driver_mpu9250.h:460</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_gga0c8f2e116fa3e90c2c7e99c98acd426eaac255f58814e0c3c1dbe5d56c237a363"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#gga0c8f2e116fa3e90c2c7e99c98acd426eaac255f58814e0c3c1dbe5d56c237a363">MPU9250_DMP_FEATURE_TAP</a></div><div class="ttdeci">@ MPU9250_DMP_FEATURE_TAP</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00454">driver_mpu9250.h:454</a></div></div>
<div class="ttc" id="agroup__mpu9250__dmp__driver_html_gga0c8f2e116fa3e90c2c7e99c98acd426eaea2f25b401ae798ab5ed96f8d64c00af"><div class="ttname"><a href="group__mpu9250__dmp__driver.html#gga0c8f2e116fa3e90c2c7e99c98acd426eaea2f25b401ae798ab5ed96f8d64c00af">MPU9250_DMP_FEATURE_ORIENT</a></div><div class="ttdeci">@ MPU9250_DMP_FEATURE_ORIENT</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00455">driver_mpu9250.h:455</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga029ecb6bfc6ca3c53df8f8903d83a6b0"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga029ecb6bfc6ca3c53df8f8903d83a6b0">MPU9250_DMP_DEFAULT_EXTERN_SYNC</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_EXTERN_SYNC</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00069">driver_mpu9250_dmp.h:69</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga06c361ce0fccdbe4503f0788f9b8edbc"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga06c361ce0fccdbe4503f0788f9b8edbc">MPU9250_DMP_DEFAULT_TAP_Z_THRESH</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_TAP_Z_THRESH</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00084">driver_mpu9250_dmp.h:84</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga08c3533ae3071e230db10f297ce81794"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga08c3533ae3071e230db10f297ce81794">MPU9250_DMP_DEFAULT_IIC_BYPASS</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_IIC_BYPASS</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00073">driver_mpu9250_dmp.h:73</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga0a6e3c022348ff534e8c232f9eef2fcc"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga0a6e3c022348ff534e8c232f9eef2fcc">mpu9250_dmp_irq_handler</a></div><div class="ttdeci">uint8_t mpu9250_dmp_irq_handler(void)</div><div class="ttdoc">dmp irq</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8c_source.html#l00048">driver_mpu9250_dmp.c:48</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga0cd1f6cf82d93735044b40d43a714a06"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga0cd1f6cf82d93735044b40d43a714a06">mpu9250_dmp_deinit</a></div><div class="ttdeci">uint8_t mpu9250_dmp_deinit(void)</div><div class="ttdoc">dmp example deinit</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8c_source.html#l01017">driver_mpu9250_dmp.c:1017</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga0cff912f261fbc735ce3d1e545c1ee66"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga0cff912f261fbc735ce3d1e545c1ee66">MPU9250_DMP_DEFAULT_CYCLE_WAKE_UP</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_CYCLE_WAKE_UP</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00059">driver_mpu9250_dmp.h:59</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga13aacdcbb67e01d92dd6a8ccc77dbae5"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga13aacdcbb67e01d92dd6a8ccc77dbae5">mpu9250_dmp_init</a></div><div class="ttdeci">uint8_t mpu9250_dmp_init(mpu9250_interface_t interface, mpu9250_address_t addr_pin, void(*receive_callback)(uint8_t type), void(*tap_callback)(uint8_t count, uint8_t direction), void(*orient_callback)(uint8_t orientation))</div><div class="ttdoc">dmp example init</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8c_source.html#l00072">driver_mpu9250_dmp.c:72</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga150d755d9d1e04774a70370def1f51dc"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga150d755d9d1e04774a70370def1f51dc">MPU9250_DMP_DEFAULT_GYROSCOPE_CHOICE</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_GYROSCOPE_CHOICE</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00089">driver_mpu9250_dmp.h:89</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga191c51cadf47a5d1b7239f8cbb0e8cd6"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga191c51cadf47a5d1b7239f8cbb0e8cd6">MPU9250_DMP_DEFAULT_INTERRUPT_PIN_TYPE</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_INTERRUPT_PIN_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00061">driver_mpu9250_dmp.h:61</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga1c7f8d3ebcab926ef90a6e456aee4783"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga1c7f8d3ebcab926ef90a6e456aee4783">MPU9250_DMP_DEFAULT_INTERRUPT_LATCH</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_INTERRUPT_LATCH</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00067">driver_mpu9250_dmp.h:67</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga1f4df3cbcab7e61f19aa40454a86901a"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga1f4df3cbcab7e61f19aa40454a86901a">MPU9250_DMP_DEFAULT_PEOMETER_STEP_COUNT</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_PEOMETER_STEP_COUNT</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00075">driver_mpu9250_dmp.h:75</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga2e57d8f05d9d09c7ebbb790230f3c3e4"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga2e57d8f05d9d09c7ebbb790230f3c3e4">MPU9250_DMP_DEFAULT_IIC_MASTER</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_IIC_MASTER</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00072">driver_mpu9250_dmp.h:72</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga3742ad0bcb734d627142e26e0ea0cf7b"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga3742ad0bcb734d627142e26e0ea0cf7b">MPU9250_DMP_DEFAULT_SHAKE_REJECT_TIME</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_SHAKE_REJECT_TIME</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00077">driver_mpu9250_dmp.h:77</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga3f2af4350a9331e3a9f3e608c13e20cc"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga3f2af4350a9331e3a9f3e608c13e20cc">MPU9250_DMP_DEFAULT_INTERRUPT_DATA_READY</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_INTERRUPT_DATA_READY</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00066">driver_mpu9250_dmp.h:66</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga3fcec5a9dd269f4077532d5840289886"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga3fcec5a9dd269f4077532d5840289886">MPU9250_DMP_DEFAULT_FSYNC_INTERRUPT_LEVEL</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_FSYNC_INTERRUPT_LEVEL</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00071">driver_mpu9250_dmp.h:71</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga4ee015e5a8c2d91bedc921c8967ba1cd"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga4ee015e5a8c2d91bedc921c8967ba1cd">MPU9250_DMP_DEFAULT_SHAKE_REJECT_THRESH</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_SHAKE_REJECT_THRESH</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00078">driver_mpu9250_dmp.h:78</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga580a94f65867ae3ff7798e02bb00c55c"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga580a94f65867ae3ff7798e02bb00c55c">MPU9250_DMP_DEFAULT_SHAKE_REJECT_TIMEOUT</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_SHAKE_REJECT_TIMEOUT</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00076">driver_mpu9250_dmp.h:76</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga59eb050f414bb020e8f79d52b6724afd"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga59eb050f414bb020e8f79d52b6724afd">MPU9250_DMP_DEFAULT_PEOMETER_WALK_TIME</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_PEOMETER_WALK_TIME</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00074">driver_mpu9250_dmp.h:74</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga70205183eb24a82676a7dfa817b4d041"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga70205183eb24a82676a7dfa817b4d041">MPU9250_DMP_DEFAULT_FSYNC_INTERRUPT</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_FSYNC_INTERRUPT</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00070">driver_mpu9250_dmp.h:70</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga75563f798589992ca48df0fa22f642b0"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga75563f798589992ca48df0fa22f642b0">MPU9250_DMP_DEFAULT_INTERRUPT_DMP</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_INTERRUPT_DMP</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00064">driver_mpu9250_dmp.h:64</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga7961c22618237850eee0c5f662f01571"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga7961c22618237850eee0c5f662f01571">MPU9250_DMP_DEFAULT_INTERRUPT_MOTION</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_INTERRUPT_MOTION</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00062">driver_mpu9250_dmp.h:62</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga7c3c3fe0f188fbd118415cac774da322"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga7c3c3fe0f188fbd118415cac774da322">mpu9250_dmp_get_pedometer_counter</a></div><div class="ttdeci">uint8_t mpu9250_dmp_get_pedometer_counter(uint32_t *cnt)</div><div class="ttdoc">dmp example get pedometer counter</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8c_source.html#l00964">driver_mpu9250_dmp.c:964</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga8f4f8e678889fd3e8f7a95bc34c69fc9"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga8f4f8e678889fd3e8f7a95bc34c69fc9">MPU9250_DMP_DEFAULT_CLOCK_SOURCE</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_CLOCK_SOURCE</div><div class="ttdoc">mpu9250 dmp example default definition</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00054">driver_mpu9250_dmp.h:54</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga912e1593042964c15abf5aeecf09ebfc"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga912e1593042964c15abf5aeecf09ebfc">MPU9250_DMP_DEFAULT_TAP_TIME_MULTI</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_TAP_TIME_MULTI</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00079">driver_mpu9250_dmp.h:79</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga97cfcd6b1f9cecd2c7ee3c49d8a84bb7"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga97cfcd6b1f9cecd2c7ee3c49d8a84bb7">MPU9250_DMP_DEFAULT_RATE</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_RATE</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00055">driver_mpu9250_dmp.h:55</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga97f1833113872da37c6650862028a977"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga97f1833113872da37c6650862028a977">MPU9250_DMP_DEFAULT_MIN_TAP_COUNT</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_MIN_TAP_COUNT</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00081">driver_mpu9250_dmp.h:81</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga9d379158a4f48f12dde139bc40f280be"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga9d379158a4f48f12dde139bc40f280be">MPU9250_DMP_DEFAULT_TAP_Y_THRESH</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_TAP_Y_THRESH</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00083">driver_mpu9250_dmp.h:83</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_ga9ebabd16e23d670f86a7b4075e7d9ba1"><div class="ttname"><a href="group__mpu9250__example__driver.html#ga9ebabd16e23d670f86a7b4075e7d9ba1">MPU9250_DMP_DEFAULT_LOW_POWER_ACCEL_OUTPUT_RATE</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_LOW_POWER_ACCEL_OUTPUT_RATE</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00092">driver_mpu9250_dmp.h:92</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gaa081ce8680c234a5da448d0987879934"><div class="ttname"><a href="group__mpu9250__example__driver.html#gaa081ce8680c234a5da448d0987879934">MPU9250_DMP_DEFAULT_INTERRUPT_READ_CLEAR</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_INTERRUPT_READ_CLEAR</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00068">driver_mpu9250_dmp.h:68</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gaaf40501da341c82d50a2d1c06810cf2b"><div class="ttname"><a href="group__mpu9250__example__driver.html#gaaf40501da341c82d50a2d1c06810cf2b">mpu9250_dmp_read_all</a></div><div class="ttdeci">uint8_t mpu9250_dmp_read_all(int16_t(*accel_raw)[3], float(*accel_g)[3], int16_t(*gyro_raw)[3], float(*gyro_dps)[3], int32_t(*quat)[4], float *pitch, float *roll, float *yaw, uint16_t *l)</div><div class="ttdoc">dmp example read</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8c_source.html#l00991">driver_mpu9250_dmp.c:991</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gab0d49b0ae1d5bb28ea88e52f404e6ef3"><div class="ttname"><a href="group__mpu9250__example__driver.html#gab0d49b0ae1d5bb28ea88e52f404e6ef3">MPU9250_DMP_DEFAULT_ACCELEROMETER_COMPARE</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_ACCELEROMETER_COMPARE</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00093">driver_mpu9250_dmp.h:93</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gab1a7ea99ecf1457026e9b29dd182e2fe"><div class="ttname"><a href="group__mpu9250__example__driver.html#gab1a7ea99ecf1457026e9b29dd182e2fe">MPU9250_DMP_DEFAULT_TAP_TIME</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_TAP_TIME</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00080">driver_mpu9250_dmp.h:80</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gab2648c54d84590ed0d49d5ab2655552e"><div class="ttname"><a href="group__mpu9250__example__driver.html#gab2648c54d84590ed0d49d5ab2655552e">MPU9250_DMP_DEFAULT_ACCELEROMETER_LOW_PASS_FILTER</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_ACCELEROMETER_LOW_PASS_FILTER</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00091">driver_mpu9250_dmp.h:91</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gab5c61b14873d665849ea8457ecf91e8d"><div class="ttname"><a href="group__mpu9250__example__driver.html#gab5c61b14873d665849ea8457ecf91e8d">MPU9250_DMP_DEFAULT_TAP_X_THRESH</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_TAP_X_THRESH</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00082">driver_mpu9250_dmp.h:82</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gabbfe360e8bc66057b31954be2b54644f"><div class="ttname"><a href="group__mpu9250__example__driver.html#gabbfe360e8bc66057b31954be2b54644f">MPU9250_DMP_DEFAULT_INTERRUPT_PIN_LEVEL</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_INTERRUPT_PIN_LEVEL</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00060">driver_mpu9250_dmp.h:60</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gabfd08db6d08bdeab4313e23c0517041f"><div class="ttname"><a href="group__mpu9250__example__driver.html#gabfd08db6d08bdeab4313e23c0517041f">MPU9250_DMP_DEFAULT_FIFO_MODE</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_FIFO_MODE</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00088">driver_mpu9250_dmp.h:88</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gac05f9046bf33046f3968fde34dbfc10d"><div class="ttname"><a href="group__mpu9250__example__driver.html#gac05f9046bf33046f3968fde34dbfc10d">MPU9250_DMP_DEFAULT_MOTION_THRESHOLD</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_MOTION_THRESHOLD</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00086">driver_mpu9250_dmp.h:86</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gac45ce55bd530b9aa8b650ebda577900f"><div class="ttname"><a href="group__mpu9250__example__driver.html#gac45ce55bd530b9aa8b650ebda577900f">MPU9250_DMP_DEFAULT_INTERRUPT_FIFO_OVERFLOW</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_INTERRUPT_FIFO_OVERFLOW</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00063">driver_mpu9250_dmp.h:63</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gacf743928f32edfbb544034a4f9529c7a"><div class="ttname"><a href="group__mpu9250__example__driver.html#gacf743928f32edfbb544034a4f9529c7a">MPU9250_DMP_DEFAULT_INTERRUPT_FSYNC_INT</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_INTERRUPT_FSYNC_INT</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00065">driver_mpu9250_dmp.h:65</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gad15dcebbcba7b5c0a7e34bcc832a1a93"><div class="ttname"><a href="group__mpu9250__example__driver.html#gad15dcebbcba7b5c0a7e34bcc832a1a93">MPU9250_DMP_DEFAULT_INTERRUPT_MODE</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_INTERRUPT_MODE</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00085">driver_mpu9250_dmp.h:85</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gad56eb24c9e6ab9dc3132a8544ee30481"><div class="ttname"><a href="group__mpu9250__example__driver.html#gad56eb24c9e6ab9dc3132a8544ee30481">MPU9250_DMP_DEFAULT_ACCELEROMETER_RANGE</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_ACCELEROMETER_RANGE</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00056">driver_mpu9250_dmp.h:56</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gae7088b5c46c4b47372ebf7324c440102"><div class="ttname"><a href="group__mpu9250__example__driver.html#gae7088b5c46c4b47372ebf7324c440102">MPU9250_DMP_DEFAULT_LOW_PASS_FILTER</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_LOW_PASS_FILTER</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00058">driver_mpu9250_dmp.h:58</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gaf82312a43343d8b54b843c21b0816409"><div class="ttname"><a href="group__mpu9250__example__driver.html#gaf82312a43343d8b54b843c21b0816409">MPU9250_DMP_DEFAULT_GYROSCOPE_RANGE</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_GYROSCOPE_RANGE</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00057">driver_mpu9250_dmp.h:57</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gafa9c8abaea97cac6872f943a8d70b4a8"><div class="ttname"><a href="group__mpu9250__example__driver.html#gafa9c8abaea97cac6872f943a8d70b4a8">MPU9250_DMP_DEFAULT_ACCELEROMETER_CHOICE</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_ACCELEROMETER_CHOICE</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00090">driver_mpu9250_dmp.h:90</a></div></div>
<div class="ttc" id="agroup__mpu9250__example__driver_html_gafdf1ea18c96b7c4b2cc22d5fca5814fe"><div class="ttname"><a href="group__mpu9250__example__driver.html#gafdf1ea18c96b7c4b2cc22d5fca5814fe">MPU9250_DMP_DEFAULT_GYROSCOPE_STANDBY</a></div><div class="ttdeci">#define MPU9250_DMP_DEFAULT_GYROSCOPE_STANDBY</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__dmp_8h_source.html#l00087">driver_mpu9250_dmp.h:87</a></div></div>
<div class="ttc" id="agroup__mpu9250__interface__driver_html_ga15e531f463207b6917de60a4e3354ddd"><div class="ttname"><a href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a></div><div class="ttdeci">void mpu9250_interface_debug_print(const char *const fmt,...)</div><div class="ttdoc">interface print format data</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__interface__template_8c_source.html#l00164">driver_mpu9250_interface_template.c:164</a></div></div>
<div class="ttc" id="agroup__mpu9250__interface__driver_html_ga2510774a0a51efa0ef71e6b66c128924"><div class="ttname"><a href="group__mpu9250__interface__driver.html#ga2510774a0a51efa0ef71e6b66c128924">mpu9250_interface_spi_write</a></div><div class="ttdeci">uint8_t mpu9250_interface_spi_write(uint8_t reg, uint8_t *buf, uint16_t len)</div><div class="ttdoc">interface spi bus write</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__interface__template_8c_source.html#l00144">driver_mpu9250_interface_template.c:144</a></div></div>
<div class="ttc" id="agroup__mpu9250__interface__driver_html_ga38f8367930b9d4f6c91f007692b57db6"><div class="ttname"><a href="group__mpu9250__interface__driver.html#ga38f8367930b9d4f6c91f007692b57db6">mpu9250_interface_iic_deinit</a></div><div class="ttdeci">uint8_t mpu9250_interface_iic_deinit(void)</div><div class="ttdoc">interface iic bus deinit</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__interface__template_8c_source.html#l00058">driver_mpu9250_interface_template.c:58</a></div></div>
<div class="ttc" id="agroup__mpu9250__interface__driver_html_ga3c0ed7f7f0e8efcdb377e6d9565bd623"><div class="ttname"><a href="group__mpu9250__interface__driver.html#ga3c0ed7f7f0e8efcdb377e6d9565bd623">mpu9250_interface_iic_write</a></div><div class="ttdeci">uint8_t mpu9250_interface_iic_write(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)</div><div class="ttdoc">interface iic bus write</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__interface__template_8c_source.html#l00090">driver_mpu9250_interface_template.c:90</a></div></div>
<div class="ttc" id="agroup__mpu9250__interface__driver_html_ga47c6b7d290af5eab7566beec22f31d35"><div class="ttname"><a href="group__mpu9250__interface__driver.html#ga47c6b7d290af5eab7566beec22f31d35">mpu9250_interface_iic_read</a></div><div class="ttdeci">uint8_t mpu9250_interface_iic_read(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)</div><div class="ttdoc">interface iic bus read</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__interface__template_8c_source.html#l00074">driver_mpu9250_interface_template.c:74</a></div></div>
<div class="ttc" id="agroup__mpu9250__interface__driver_html_ga828c29c3c4bcabab8f2d5a46e258b032"><div class="ttname"><a href="group__mpu9250__interface__driver.html#ga828c29c3c4bcabab8f2d5a46e258b032">mpu9250_interface_iic_init</a></div><div class="ttdeci">uint8_t mpu9250_interface_iic_init(void)</div><div class="ttdoc">interface iic bus init</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__interface__template_8c_source.html#l00046">driver_mpu9250_interface_template.c:46</a></div></div>
<div class="ttc" id="agroup__mpu9250__interface__driver_html_ga983341ffd2fc96fbf7baf5aabbf841d5"><div class="ttname"><a href="group__mpu9250__interface__driver.html#ga983341ffd2fc96fbf7baf5aabbf841d5">mpu9250_interface_spi_read</a></div><div class="ttdeci">uint8_t mpu9250_interface_spi_read(uint8_t reg, uint8_t *buf, uint16_t len)</div><div class="ttdoc">interface spi bus read</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__interface__template_8c_source.html#l00129">driver_mpu9250_interface_template.c:129</a></div></div>
<div class="ttc" id="agroup__mpu9250__interface__driver_html_gabb4c6312df6cbca9d0dbd20f7669298c"><div class="ttname"><a href="group__mpu9250__interface__driver.html#gabb4c6312df6cbca9d0dbd20f7669298c">mpu9250_interface_spi_init</a></div><div class="ttdeci">uint8_t mpu9250_interface_spi_init(void)</div><div class="ttdoc">interface spi bus init</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__interface__template_8c_source.html#l00102">driver_mpu9250_interface_template.c:102</a></div></div>
<div class="ttc" id="agroup__mpu9250__interface__driver_html_gaf19d808d558d778f688b5a286d383ec4"><div class="ttname"><a href="group__mpu9250__interface__driver.html#gaf19d808d558d778f688b5a286d383ec4">mpu9250_interface_delay_ms</a></div><div class="ttdeci">void mpu9250_interface_delay_ms(uint32_t ms)</div><div class="ttdoc">interface delay ms</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__interface__template_8c_source.html#l00154">driver_mpu9250_interface_template.c:154</a></div></div>
<div class="ttc" id="agroup__mpu9250__interface__driver_html_gafecbef2fc236dbed7fe843f3dfbfe196"><div class="ttname"><a href="group__mpu9250__interface__driver.html#gafecbef2fc236dbed7fe843f3dfbfe196">mpu9250_interface_spi_deinit</a></div><div class="ttdeci">uint8_t mpu9250_interface_spi_deinit(void)</div><div class="ttdoc">interface spi bus deinit</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250__interface__template_8c_source.html#l00114">driver_mpu9250_interface_template.c:114</a></div></div>
<div class="ttc" id="agroup__mpu9250__link__driver_html_ga04bc64a200712b5a5e4f21ca1defbca2"><div class="ttname"><a href="group__mpu9250__link__driver.html#ga04bc64a200712b5a5e4f21ca1defbca2">DRIVER_MPU9250_LINK_INIT</a></div><div class="ttdeci">#define DRIVER_MPU9250_LINK_INIT(HANDLE, STRUCTURE)</div><div class="ttdoc">initialize mpu9250_handle_t structure</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00560">driver_mpu9250.h:560</a></div></div>
<div class="ttc" id="agroup__mpu9250__link__driver_html_ga092da05a1e54a10408010d8cb898a366"><div class="ttname"><a href="group__mpu9250__link__driver.html#ga092da05a1e54a10408010d8cb898a366">DRIVER_MPU9250_LINK_RECEIVE_CALLBACK</a></div><div class="ttdeci">#define DRIVER_MPU9250_LINK_RECEIVE_CALLBACK(HANDLE, FUC)</div><div class="ttdoc">link receive_callback function</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00648">driver_mpu9250.h:648</a></div></div>
<div class="ttc" id="agroup__mpu9250__link__driver_html_ga102471779997baae471d50aa7a6f4ede"><div class="ttname"><a href="group__mpu9250__link__driver.html#ga102471779997baae471d50aa7a6f4ede">DRIVER_MPU9250_LINK_IIC_DEINIT</a></div><div class="ttdeci">#define DRIVER_MPU9250_LINK_IIC_DEINIT(HANDLE, FUC)</div><div class="ttdoc">link iic_deinit function</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00576">driver_mpu9250.h:576</a></div></div>
<div class="ttc" id="agroup__mpu9250__link__driver_html_ga160f34aa30bd7cf514b1724ac5d17dba"><div class="ttname"><a href="group__mpu9250__link__driver.html#ga160f34aa30bd7cf514b1724ac5d17dba">DRIVER_MPU9250_LINK_SPI_INIT</a></div><div class="ttdeci">#define DRIVER_MPU9250_LINK_SPI_INIT(HANDLE, FUC)</div><div class="ttdoc">link spi_init function</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00600">driver_mpu9250.h:600</a></div></div>
<div class="ttc" id="agroup__mpu9250__link__driver_html_ga1d3171d44f7f96cd49fbefab81dbfe1b"><div class="ttname"><a href="group__mpu9250__link__driver.html#ga1d3171d44f7f96cd49fbefab81dbfe1b">DRIVER_MPU9250_LINK_SPI_READ</a></div><div class="ttdeci">#define DRIVER_MPU9250_LINK_SPI_READ(HANDLE, FUC)</div><div class="ttdoc">link spi_read function</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00616">driver_mpu9250.h:616</a></div></div>
<div class="ttc" id="agroup__mpu9250__link__driver_html_ga568ef61d66c46caf156ebd384c8efb92"><div class="ttname"><a href="group__mpu9250__link__driver.html#ga568ef61d66c46caf156ebd384c8efb92">DRIVER_MPU9250_LINK_IIC_READ</a></div><div class="ttdeci">#define DRIVER_MPU9250_LINK_IIC_READ(HANDLE, FUC)</div><div class="ttdoc">link iic_read function</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00584">driver_mpu9250.h:584</a></div></div>
<div class="ttc" id="agroup__mpu9250__link__driver_html_ga94ff1addd2347a4251fa4b12496b712d"><div class="ttname"><a href="group__mpu9250__link__driver.html#ga94ff1addd2347a4251fa4b12496b712d">DRIVER_MPU9250_LINK_IIC_WRITE</a></div><div class="ttdeci">#define DRIVER_MPU9250_LINK_IIC_WRITE(HANDLE, FUC)</div><div class="ttdoc">link iic_write function</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00592">driver_mpu9250.h:592</a></div></div>
<div class="ttc" id="agroup__mpu9250__link__driver_html_ga9aee2efa38750c2372c783425223def2"><div class="ttname"><a href="group__mpu9250__link__driver.html#ga9aee2efa38750c2372c783425223def2">DRIVER_MPU9250_LINK_SPI_DEINIT</a></div><div class="ttdeci">#define DRIVER_MPU9250_LINK_SPI_DEINIT(HANDLE, FUC)</div><div class="ttdoc">link spi_deinit function</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00608">driver_mpu9250.h:608</a></div></div>
<div class="ttc" id="agroup__mpu9250__link__driver_html_gaa2bc7e5da6f001397b5ea47bb4b63c1a"><div class="ttname"><a href="group__mpu9250__link__driver.html#gaa2bc7e5da6f001397b5ea47bb4b63c1a">DRIVER_MPU9250_LINK_IIC_INIT</a></div><div class="ttdeci">#define DRIVER_MPU9250_LINK_IIC_INIT(HANDLE, FUC)</div><div class="ttdoc">link iic_init function</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00568">driver_mpu9250.h:568</a></div></div>
<div class="ttc" id="agroup__mpu9250__link__driver_html_gac50364eafa79627bf41bf82173f9876b"><div class="ttname"><a href="group__mpu9250__link__driver.html#gac50364eafa79627bf41bf82173f9876b">DRIVER_MPU9250_LINK_DEBUG_PRINT</a></div><div class="ttdeci">#define DRIVER_MPU9250_LINK_DEBUG_PRINT(HANDLE, FUC)</div><div class="ttdoc">link debug_print function</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00640">driver_mpu9250.h:640</a></div></div>
<div class="ttc" id="agroup__mpu9250__link__driver_html_gacde28e65cc543b440954d4f7d0baab9a"><div class="ttname"><a href="group__mpu9250__link__driver.html#gacde28e65cc543b440954d4f7d0baab9a">DRIVER_MPU9250_LINK_DELAY_MS</a></div><div class="ttdeci">#define DRIVER_MPU9250_LINK_DELAY_MS(HANDLE, FUC)</div><div class="ttdoc">link delay_ms function</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00632">driver_mpu9250.h:632</a></div></div>
<div class="ttc" id="agroup__mpu9250__link__driver_html_gafe91b7103d17491d32cfc50efd840eda"><div class="ttname"><a href="group__mpu9250__link__driver.html#gafe91b7103d17491d32cfc50efd840eda">DRIVER_MPU9250_LINK_SPI_WRITE</a></div><div class="ttdeci">#define DRIVER_MPU9250_LINK_SPI_WRITE(HANDLE, FUC)</div><div class="ttdoc">link spi_write function</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00624">driver_mpu9250.h:624</a></div></div>
<div class="ttc" id="astructmpu9250__handle__s_html"><div class="ttname"><a href="structmpu9250__handle__s.html">mpu9250_handle_s</a></div><div class="ttdoc">mpu9250 handle structure definition</div><div class="ttdef"><b>Definition:</b> <a href="driver__mpu9250_8h_source.html#l00501">driver_mpu9250.h:502</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_cfafba98a580ce4b62f8a6fa96d7cbb0.html">example</a></li><li class="navelem"><a class="el" href="driver__mpu9250__dmp_8c.html">driver_mpu9250_dmp.c</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
